Add simple curses example

This commit is contained in:
Tanner Collin 2022-09-01 01:33:26 -06:00
parent bf643cfa1d
commit 1cbb32779b

19
simple.py Executable file
View File

@ -0,0 +1,19 @@
#!/home/pi/protovac/env/bin/python
import time
import curses
stdscr = curses.initscr()
curses.noecho()
curses.cbreak()
stdscr.keypad(True)
stdscr.addstr(5, 5, 'Hello world!')
stdscr.refresh()
stdscr.getch()
curses.nocbreak()
stdscr.keypad(False)
curses.echo()
curses.endwin()