From 7ea30b14d1ac3b0a1d2762a33032c2d7520e487c Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Sat, 13 May 2017 19:05:27 -0700 Subject: [PATCH] Python: added curses folder and init example --- python/curses/basics/main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 python/curses/basics/main.py diff --git a/python/curses/basics/main.py b/python/curses/basics/main.py new file mode 100644 index 0000000..ffbb100 --- /dev/null +++ b/python/curses/basics/main.py @@ -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()