Display a prompt, quashing any keystrokes which might have remained.
(window)
| 547 | |
| 548 | |
| 549 | def prompt(window): |
| 550 | """Display a prompt, quashing any keystrokes |
| 551 | which might have remained.""" |
| 552 | |
| 553 | window.move(0, 0) |
| 554 | window.nodelay(1) |
| 555 | window.getch() |
| 556 | window.nodelay(0) |
| 557 | window.getch() |
| 558 | window.nodelay(1) |
| 559 | |
| 560 | |
| 561 | def move_army(session, window, state): |