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

Function curses_clear_nhwindow

win/curses/cursmain.c:454–465  ·  view source on GitHub ↗

Clear the given window, when asked to. */

Source from the content-addressed store, hash-verified

452
453/* Clear the given window, when asked to. */
454void
455curses_clear_nhwindow(winid wid)
456{
457 if (wid != NHW_MESSAGE) {
458 curses_clear_nhwin(wid);
459 } else {
460 /* scroll the message window one line if it's full */
461 curses_count_window("");
462 /* remove 'countwin', leaving last message line blank */
463 curses_count_window((char *) 0);
464 }
465}
466
467/* -- Display the window on the screen. If there is data
468 pending for output in that window, it should be sent.

Callers

nothing calls this directly

Calls 2

curses_clear_nhwinFunction · 0.85
curses_count_windowFunction · 0.85

Tested by

no test coverage detected