| 574 | extern int windows_console_custom_nhgetch(void); |
| 575 | |
| 576 | void |
| 577 | getreturn(const char *str) |
| 578 | { |
| 579 | static boolean in_getreturn = FALSE; |
| 580 | char buf[BUFSZ]; |
| 581 | |
| 582 | if (in_getreturn || !getreturn_enabled) |
| 583 | return; |
| 584 | in_getreturn = TRUE; |
| 585 | Sprintf(buf,"Hit <Enter> %s.", str); |
| 586 | raw_print(buf); |
| 587 | if (WINDOWPORT(tty)) |
| 588 | windows_console_custom_nhgetch(); |
| 589 | else |
| 590 | wait_synch(); |
| 591 | in_getreturn = FALSE; |
| 592 | return; |
| 593 | } |
| 594 | #endif |
| 595 | |
| 596 | /* nethack_enter_windows() is called from main immediately after |
nothing calls this directly
no test coverage detected