Python: added curses folder and init example
This commit is contained in:
parent
324a960afb
commit
7ea30b14d1
13
python/curses/basics/main.py
Normal file
13
python/curses/basics/main.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user