* Ensure the underlying status window data start out * blank and null-terminated. */
| 4888 | * blank and null-terminated. |
| 4889 | */ |
| 4890 | static boolean |
| 4891 | check_windowdata(void) |
| 4892 | { |
| 4893 | if (WIN_STATUS == WIN_ERR || wins[WIN_STATUS] == (struct WinDesc *) 0) { |
| 4894 | paniclog("check_windowdata", " null status window."); |
| 4895 | return FALSE; |
| 4896 | } else if (!windowdata_init) { |
| 4897 | tty_clear_nhwindow(WIN_STATUS); /* also sets cw->data[] to spaces */ |
| 4898 | windowdata_init = TRUE; |
| 4899 | } |
| 4900 | return TRUE; |
| 4901 | } |
| 4902 | |
| 4903 | /* |
| 4904 | * Return what color this condition should |
no test coverage detected