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()