There's more than one way to do things | |
PerlMonks |
(bbfu) (set terminal) Re(4): Function keys via Net::Telnetby bbfu (Curate) |
on Apr 04, 2001 at 23:35 UTC ( [id://69835]=note: print w/replies, xml ) | Need Help?? |
I had Net::Telnet execute a SHOW TERMINAL command and it came up with VT320 without my having done a SET TERMINAL but I decided to try it out anyway. It seems to be working now but I tried commenting out the SET TERMINAL command and it still works. =( Right now I'm sending "\e[18~" for F7. I swear I tried that last night and it didn't work. *sigh* Guess I should've used the dead chicken last night. =) The way I found what code to use (\e[18~ isn't documented anywhere on the 'net that I could find) deserves some mention... What I did was, using a telnet client that I knew worked in those menus, I logged into the VMS server and, from there, telneted into our development box running linux. The login prompt echo's back any control keys (including ^H, which is a pain) using ^[ to represent ESC. So I just started hitting function keys and recording what it echoed back. =) This is what I got back for all the function keys:
Anyway, it now seems to be working. Thanks much for all your help! I never even thought to try the SET TERMINAL command. :-) bbfu
In Section
Seekers of Perl Wisdom
|
|