Max E. Kuznecov wrote:
> 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?

That is correct.

> And what is the best way to handle another terminal types?

I'm happy to accept a patch that adds the FreeBSD console escape 
sequences to escape.py.  A better solution would be to query the termcap 
info and build the sequences from that.

I don't use the curses library escape sequence detection because it 
misses many keys (likely just incomplete termcap entries) and it pauses 
for 1 second if the user just presses ESC.

Ian


_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to