[nylug-workshop] Input strategies
Peter C. Norton
spacey-nylug-workshop at lenin.net
Sun Dec 10 03:14:55 EST 2006
On Sat, Dec 09, 2006 at 11:29:54AM -0500, Dan Crosta wrote:
> Great! Thanks Peter and anyone else who helped out with this patch...
> I've imported it to r146, and it seems to be working well. There seem
> to still be a few keys which either curses doesn't properly wrangle
> or that the python curses module doesn't have a name for
> (curses.KEY_<foo>), surprisingly the Tab, Return and Escape keys. But
> the remainder of the keyboard seems to be well-supported in a fairly
> cross-platform way and well more readable than the old version, thanks!
I'm going to guess that's because they're part of the standard ASCII
key value definitions.
I just took a look, and if you import curses, curses.ascii, then you
can test to see if a key is equal to curses.ascii.ESC,
curses.ascii.TAB, or curses.ascii.LF.
-Peter
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.
More information about the nylug-workshop
mailing list