def prompt(window):
    """Display a prompt, quashing any keystrokes
    which might have remained."""
    window.move(0, 0)
    window.nodelay(1)
    window.getch()
    window.nodelay(0)
    window.getch()
    window.nodelay(1)
