Add simple curses example

master
Tanner Collin 2 years ago
parent bf643cfa1d
commit 1cbb32779b
  1. 19
      simple.py

@ -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()
Loading…
Cancel
Save