in reply to Out of control in Net::Telnet

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 >a

and press F11, the resulting file is:

$ hexdump a 0000000 5b1b 3332

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:

use Term::Cap; $terminal = Tgetent Term::Cap { TERM => 'vt100' }; $f11=$terminal->Tputs('F1',1);

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