Browse Source

Very basic ncurses

Petra Lamborn 4 years ago
parent
commit
ffb2f3dfc2
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      fedicurses.py

+ 9
- 0
fedicurses.py View File

@@ -0,0 +1,9 @@
1
+import curses
2
+
3
+def main(stdscr):
4
+    stdscr.clear()
5
+    i = 'c'
6
+    while i != 'q':
7
+        i = stdscr.getkey()
8
+
9
+curses.wrapper(main)