Created
June 30, 2011 01:25
-
-
Save myano/1055442 to your computer and use it in GitHub Desktop.
Revisions
-
Michael Yanovich created this gist
Jun 30, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ #!/usr/bin/env python import curses import curses.textpad import time stdscr = curses.initscr() #curses.noecho() #curses.echo() begin_x = 20 begin_y = 7 height = 5 width = 40 win = curses.newwin(height, width, begin_y, begin_x) tb = curses.textpad.Textbox(win) text = tb.edit() curses.addstr(4,1,text.encode('utf_8')) #hw = "Hello world!" #while 1: # c = stdscr.getch() # if c == ord('p'): # elif c == ord('q'): break # Exit the while() # elif c == curses.KEY_HOME: x = y = 0 curses.endwin()