diff -r 5e78d52ebb24 -r 472a753664f9 tests/curses_unicode.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/curses_unicode.py Fri Oct 07 12:36:14 2011 +0200 @@ -0,0 +1,18 @@ +#!/usr/bin/python +# coding=UTF-8 + +import curses +import locale + +locale.setlocale(locale.LC_ALL, "") + +def doStuff(stdscr): + message = "Žlutý kůň.\nPress 'q' to quit.\n" + stdscr.addstr(0, 0, message, 0) + while True: + c = stdscr.getch() # pauses until a key's hit + if c == ord('q'): + break + stdscr.addch(c) + +curses.wrapper(doStuff)