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

Function gettty

sys/share/pctty.c:20–32  ·  view source on GitHub ↗

* Get initial state of terminal, set ospeed (for termcap routines) * and switch off tab expansion if necessary. * Called by startup() in termcap.c and after returning from ! or ^Z */

Source from the content-addressed store, hash-verified

18 * Called by startup() in termcap.c and after returning from ! or ^Z
19 */
20void
21gettty(void)
22{
23 erase_char = '\b';
24 kill_char = 21; /* cntl-U */
25 iflags.cbreak = TRUE;
26#if !defined(TOS)
27 disable_ctrlP(); /* turn off ^P processing */
28#endif
29#if defined(MSDOS) && defined(NO_TERMS)
30 gr_init();
31#endif
32}
33
34/* reset terminal to original state */
35void

Callers 1

pcmainFunction · 0.70

Calls 2

gr_initFunction · 0.85
disable_ctrlPFunction · 0.50

Tested by

no test coverage detected