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

Function term_start_screen

win/tty/termcap.c:510–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508#endif /* PC9800 */
509
510void
511term_start_screen(void)
512{
513 xputs(TI);
514 xputs(VS);
515#ifdef PC9800
516 if (!SYMHANDLING(H_IBM))
517 tty_ascgraphics_hilite_fixup();
518 /* set up callback in case option is not set yet but toggled later */
519 ascgraphics_mode_callback = tty_ascgraphics_hilite_fixup;
520#ifdef ASCIIGRAPH
521 if (SYMHANDLING(H_IBM))
522 init_hilite();
523 /* set up callback in case option is not set yet but toggled later */
524 ibmgraphics_mode_callback = init_hilite;
525#endif
526#endif /* PC9800 */
527
528#ifdef TERMLIB
529 if (SYMHANDLING(H_DEC))
530 tty_decgraphics_termcap_fixup();
531 /* set up callback in case option is not set yet but toggled later */
532 decgraphics_mode_callback = tty_decgraphics_termcap_fixup;
533#endif
534#ifdef ENHANCED_SYMBOLS
535 utf8graphics_mode_callback = tty_utf8graphics_fixup;
536#endif
537
538 if (gc.Cmd.num_pad)
539 tty_number_pad(1); /* make keypad send digits */
540}
541
542void
543term_end_screen(void)

Callers

nothing calls this directly

Calls 5

init_hiliteFunction · 0.85
xputsFunction · 0.70
tty_number_padFunction · 0.70

Tested by

no test coverage detected