MCPcopy Create free account
hub / github.com/NetHack/NetHack / term_startup

Function term_startup

sys/msdos/video.c:504–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504void
505term_startup(int *wid, int *hgt)
506{
507 /* code to sense display adapter is required here - MJA */
508
509 attrib_text_normal = ATTRIB_NORMAL;
510 attrib_text_intense = ATTRIB_INTENSE;
511
512 /* These are defaults and may get overridden */
513 attrib_gr_normal = attrib_text_normal;
514 attrib_gr_intense = attrib_text_intense;
515 g_attribute = attrib_text_normal; /* Give it a starting value */
516
517#ifdef SCREEN_VGA
518 if (iflags.usevga) {
519 vga_term_startup(wid, hgt);
520 } else
521#endif
522#ifdef SCREEN_VESA
523 if (iflags.usevesa) {
524 vesa_term_startup(wid, hgt);
525 } else
526#endif
527 txt_startup(wid, hgt);
528
529 *wid = CO;
530 *hgt = LI;
531
532#ifdef CLIPPING
533 if (CO < COLNO || LI < ROWNO + 3)
534 setclipped();
535#endif
536
537 init_ttycolor();
538
539#ifdef MONO_CHECK
540 monoflag = txt_monoadapt_check();
541#else
542 monoflag = 0;
543#endif
544
545 inversed = 0;
546}
547
548void
549term_start_screen(void)

Callers

nothing calls this directly

Calls 6

vga_term_startupFunction · 0.85
vesa_term_startupFunction · 0.85
txt_startupFunction · 0.85
setclippedFunction · 0.85
init_ttycolorFunction · 0.85
txt_monoadapt_checkFunction · 0.85

Tested by

no test coverage detected