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

Function settty

sys/share/pctty.c:35–47  ·  view source on GitHub ↗

reset terminal to original state */

Source from the content-addressed store, hash-verified

33
34/* reset terminal to original state */
35void
36settty(const char *s)
37{
38#if defined(MSDOS) && defined(NO_TERMS)
39 gr_finish();
40#endif
41 term_end_screen();
42 if (s)
43 raw_print(s);
44#if !defined(TOS)
45 enable_ctrlP(); /* turn on ^P processing */
46#endif
47}
48
49/* called by init_nhwindows() and resume_nhwindows() */
50void

Callers

nothing calls this directly

Calls 4

gr_finishFunction · 0.85
raw_printFunction · 0.85
term_end_screenFunction · 0.50
enable_ctrlPFunction · 0.50

Tested by

no test coverage detected