MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / prompt

Function prompt

examples/space_invaders/space_invaders.py:549–558  ·  view source on GitHub ↗

Display a prompt, quashing any keystrokes which might have remained.

(window)

Source from the content-addressed store, hash-verified

547
548
549def 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
561def move_army(session, window, state):

Callers 2

pauseFunction · 0.85
startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected