Author al65536
Recipients
Date 2007-03-23.20:50:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
#!/usr/bin/python
import curses

# Will works
scr=curses.initscr()
key=-1
try:
    try:
        key=scr.getkey()
    except:
        pass
except KeyboardInterrupt:
    key="CTRL-C"
curses.endwin()
print key

# Will fail
scr=curses.initscr()
key=-1
try:
    key=scr.getkey()
except KeyboardInterrupt:
    key="CTRL-C"
curses.endwin()
print key
History
Date User Action Args
2007-08-23 14:52:44adminlinkissue1687125 messages
2007-08-23 14:52:44admincreate