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

Function cls

src/display.c:2188–2202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188void
2189cls(void)
2190{
2191 static boolean in_cls = 0;
2192
2193 if (in_cls)
2194 return;
2195 in_cls = TRUE;
2196 display_nhwindow(WIN_MESSAGE, FALSE); /* flush messages */
2197 disp.botlx = TRUE; /* force update of botl window */
2198 clear_nhwindow(WIN_MAP); /* clear physical screen */
2199
2200 clear_glyph_buffer(); /* force gbuf[][].glyph to unexplored */
2201 in_cls = FALSE;
2202}
2203
2204/*
2205 * Synch the third screen with the display.

Callers 13

gold_detectFunction · 0.85
food_detectFunction · 0.85
object_detectFunction · 0.85
monster_detectFunction · 0.85
display_trap_mapFunction · 0.85
find_trapFunction · 0.85
drag_downFunction · 0.85
swallowedFunction · 0.85
under_waterFunction · 0.85
under_groundFunction · 0.85
docrt_flagsFunction · 0.85
you_aggravateFunction · 0.85

Calls 1

clear_glyph_bufferFunction · 0.85

Tested by

no test coverage detected