Hi,
I'm using urwid in my project where I want to create a flexible way of
binding key-sequences (like Ctrll-X, Meta-G, F1 etc) to some actions.
On my FreeBSD 7 box in xterm
test program with get_input(True) pressing F1 returns (['f1'], [27,
79, 80]), i. e. correctly determines F1 pressed.
Things getting a bit worse when I run the same test program in pure
console, where terminal type is cons25r, in this case I get (['meta
[', 'M'], [27, 91, 77]).
xterm termcap entry says:
:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ ...
which apparently matches escape.py's:
('OP','f1'),('OQ','f2'),('OR','f3'),('OS','f4'),But sure there is no matching entry for cons25r. So the question is: does urwid recognize only those hardcoded in escape.py sequences? And what is the best way to handle another terminal types? Thanks. -- ~syhpoon _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
