Python: added curses folder and init example

This commit is contained in:
Logen Kain 2017-05-13 19:05:27 -07:00
parent 324a960afb
commit 7ea30b14d1

View File

@ -0,0 +1,13 @@
import curses
stdscr = curses.initscr()
stdscr.clear()
curses.noecho()
curses.cbreak()
stdscr.keypad(True)
stdscr.getkey()
curses.nocbreak()
stdscr.keypad(False)
curses.echo()
curses.endwin()