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

Function new_status_window

win/tty/wintty.c:490–507  ·  view source on GitHub ↗

destroy and recreate status window; extracted from winch_handler() and augmented for use by tty_preference_update() */

Source from the content-addressed store, hash-verified

488/* destroy and recreate status window; extracted from winch_handler()
489 and augmented for use by tty_preference_update() */
490static void
491new_status_window(void)
492{
493 if (WIN_STATUS != WIN_ERR) {
494 /* in case it's shrinking, clear it before destroying so that
495 dropped portion won't show anything that's now becoming stale */
496 tty_clear_nhwindow(WIN_STATUS);
497 tty_destroy_nhwindow(WIN_STATUS), WIN_STATUS = WIN_ERR;
498 }
499 /* frees some status tracking data */
500 genl_status_finish();
501 /* creates status window and allocates tracking data */
502 tty_status_init();
503 tty_clear_nhwindow(WIN_STATUS); /* does some init, sets context.botlx */
504#ifdef STATUS_HILITES
505 status_initialize(REASSESS_ONLY);
506#endif
507}
508
509/*ARGSUSED*/
510void

Callers 2

resize_ttyFunction · 0.85
tty_preference_updateFunction · 0.85

Calls 5

tty_clear_nhwindowFunction · 0.85
tty_destroy_nhwindowFunction · 0.85
genl_status_finishFunction · 0.85
tty_status_initFunction · 0.85
status_initializeFunction · 0.85

Tested by

no test coverage detected