1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-18 21:09:41 +02:00
pandora-box/tests/wait-key.py

19 lines
308 B
Python
Raw Permalink Normal View History

2023-03-14 15:04:30 +01:00
#!/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()