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

Function tty_wait_synch

win/tty/wintty.c:3623–3647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3621}
3622
3623void
3624tty_wait_synch(void)
3625{
3626 HUPSKIP();
3627 /* we just need to make sure all windows are synch'd */
3628 if (WIN_MAP == WIN_ERR || !ttyDisplay || ttyDisplay->rawprint) {
3629 getret();
3630 if (ttyDisplay)
3631 ttyDisplay->rawprint = 0;
3632 } else {
3633 tty_display_nhwindow(WIN_MAP, FALSE);
3634 if (ttyDisplay->inmore) {
3635 addtopl("--More--");
3636 (void) fflush(stdout);
3637 } else if (ttyDisplay->inread > program_state.gameover) {
3638 /* this can only happen if we were reading and got interrupted */
3639 ttyDisplay->toplin = TOPLINE_SPECIAL_PROMPT;
3640 /* do this twice; 1st time gets the Quit? message again */
3641 (void) tty_doprev_message();
3642 (void) tty_doprev_message();
3643 ttyDisplay->intr++;
3644 (void) fflush(stdout);
3645 }
3646 }
3647}
3648
3649void
3650docorner(

Callers 3

term_startupFunction · 0.85
tty_display_fileFunction · 0.85
ttyinv_create_windowFunction · 0.85

Calls 5

getretFunction · 0.85
tty_display_nhwindowFunction · 0.85
addtoplFunction · 0.85
fflushFunction · 0.85
tty_doprev_messageFunction · 0.85

Tested by

no test coverage detected