mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
work on wait key
This commit is contained in:
parent
cfde07c9c6
commit
414cd61569
2 changed files with 80 additions and 0 deletions
18
tests/wait-key.py
Executable file
18
tests/wait-key.py
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import curses
|
||||
|
||||
screen = curses.initscr()
|
||||
screen.keypad(1)
|
||||
curses.curs_set(0)
|
||||
curses.mousemask(curses.ALL_MOUSE_EVENTS | curses.REPORT_MOUSE_POSITION)
|
||||
curses.flushinp()
|
||||
curses.noecho()
|
||||
screen.clear()
|
||||
|
||||
screen.addstr(1, 0, "Press any key")
|
||||
|
||||
screen.getch()
|
||||
|
||||
curses.endwin()
|
||||
curses.flushinp()
|
Loading…
Add table
Add a link
Reference in a new issue