Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Out of control in Net::Telnetby dakkar (Hermit) |
on Nov 25, 2002 at 14:08 UTC ( [id://215620]=note: print w/replies, xml ) | Need Help?? |
I think that you are going to have to find a bit more about the terminal settings of your device. What xev tells you is the X11 keysym of F11. It also tells you the keycode (95). In my rxvt, if I say: $ cat >aand press F11, the resulting file is:
In general, what codes to send to a terminal to emulate a keystroke (usually apart from the trivial ones) depends on the type of terminal. If you know the terminal type, you can use Term::Cap:
replacing vt100 with the appropriate terminal type. Note: the termcap(5) manpage says that the capability called F1 is "The string sent by function key f11". Alternatively, you can try FB. -- dakkar - Mobilis in mobile
In Section
Seekers of Perl Wisdom
|
|