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

Function cl_eos

win/tty/termcap.c:838–855  ·  view source on GitHub ↗

must only be called with curx = 1 */

Source from the content-addressed store, hash-verified

836
837/* must only be called with curx = 1 */
838void
839cl_eos(void) /* free after Robert Viduya */
840{
841 if (nh_CD) {
842 xputs(nh_CD);
843 } else {
844 int cy = ttyDisplay->cury + 1;
845
846 while (cy <= LI - 2) {
847 cl_end();
848 (void) xputc('\n');
849 cy++;
850 }
851 cl_end();
852 tty_curs(BASE_WINDOW, (int) ttyDisplay->curx + 1,
853 (int) ttyDisplay->cury);
854 }
855}
856
857#if defined(TERMLIB)
858#if defined(UNIX) && defined(TERMINFO)

Callers 4

erase_menu_or_textFunction · 0.70
process_menu_windowFunction · 0.70
process_text_windowFunction · 0.70
tty_display_nhwindowFunction · 0.70

Calls 4

tty_cursFunction · 0.85
xputsFunction · 0.70
cl_endFunction · 0.70
xputcFunction · 0.70

Tested by

no test coverage detected