| 3621 | } |
| 3622 | |
| 3623 | void |
| 3624 | tty_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 | |
| 3649 | void |
| 3650 | docorner( |
no test coverage detected