Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Dear Monks,
I'm working on implementing a simple data entry thingy and connect to an AnyEvent::Handle via the telnet command-line program. I'm trying to get it to not just "read" on getting a newline, but also on pressing arrow keys. I know that I can register a different EOL character via ::Handle's push_read() method, but I haven't got it to work on my terminal, btw. which is Ubuntu's default, where I then run the default telnet command. What *does* work is a procedure like:
My second hunch was that maybe telnet always only transmits upon ENTER, but I've tried other people's telnet applications where my telnet DOES transmit arrow keys and also the local echo'ing of the special arrow keys on my end is suppressed. How does that work? Do such applications send a special "handshake" that puts my telnet + shell into "application mode" or how is such a remote telnet handle configured to munge chars terminated by a newline/ENTER *and* special key input, like arrow keys? I hope someone with knowledge from the olden times when telnet was in vogue can shed some light. If that's possible with AnyEvent::Handle. And how I can go forth from here. Thanks a ton already! In reply to How do I get AnyEvent::Handle to munge arrow keys? by isync
|
|