destroy and recreate status window; extracted from winch_handler() and augmented for use by tty_preference_update() */
| 488 | /* destroy and recreate status window; extracted from winch_handler() |
| 489 | and augmented for use by tty_preference_update() */ |
| 490 | static void |
| 491 | new_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*/ |
| 510 | void |
no test coverage detected