MCPcopy Index your code
hub / github.com/NetHack/NetHack / term_shutdown

Function term_shutdown

win/tty/termcap.c:341–356  ·  view source on GitHub ↗

note: at present, this routine is not part of the formal window interface */ deallocate resources prior to final termination */

Source from the content-addressed store, hash-verified

339 */
340/* deallocate resources prior to final termination */
341void
342term_shutdown(void)
343{
344 /* we only attempt to clean up a few individual termcap variables */
345#if defined(TERMLIB) || defined(ANSI_DEFAULT)
346 kill_hilite();
347#endif
348#ifdef TERMLIB
349 if (dynamic_HIHE) {
350 free((genericptr_t) nh_HI), nh_HI = (char *) 0;
351 free((genericptr_t) nh_HE), nh_HE = (char *) 0;
352 dynamic_HIHE = FALSE;
353 }
354#endif
355 return;
356}
357
358void
359tty_number_pad(int state)

Callers 1

tty_exit_nhwindowsFunction · 0.70

Calls 1

kill_hiliteFunction · 0.85

Tested by

no test coverage detected