author | Radek Brich <radek.brich@devl.cz> |
Fri, 07 Oct 2011 12:02:33 +0200 | |
changeset 19 | 5e78d52ebb24 |
permissions | -rwxr-xr-x |
19 | 1 |
#!/usr/bin/python |
2 |
# coding=UTF-8 |
|
3 |
||
4 |
import curses |
|
5 |
import locale |
|
6 |
||
7 |
locale.setlocale(locale.LC_ALL, "") |
|
8 |
||
9 |
def doStuff(stdscr): |
|
10 |
message = "Žlutý kůň.\nPress 'q' to quit.\n" |
|
11 |
stdscr.addstr(0, 0, message, 0) |
|
12 |
while True: |
|
13 |
c = stdscr.getch() # pauses until a key's hit |
|
14 |
if c == ord('q'): |
|
15 |
break |
|
16 |
stdscr.addch(c) |
|
17 |
||
18 |
curses.wrapper(doStuff) |