Sending F3 to telnet

Hello,

I have been trying to figure out how to send F3 key in net::telnet. I
tried the command telnet_session.cmd("\x00\x3d"), but it does
not work. Does anyone know how to send an F3 to telnet? Any help is
appreciated.

Thanks,
Angelo

On Mon, Dec 5, 2011 at 1:04 AM, Angelo R. [email protected] wrote:

Hello,

I have been trying to figure out how to send F3 key in net::telnet. I
tried the command telnet_session.cmd(“\x00\x3d”), but it does
not work. Does anyone know how to send an F3 to telnet? Any help is
appreciated.

Thanks,
Angelo

That would depend on the terminal emulation the other end is
expecting. For something VT100-compatible, you’d have to send
“\033OR”. For at least some xterms, you’d send “\033[13~”.

http://aperiodic.net/phil/archives/Geekery/term-function-keys.html
has a good table (but I don’t know how up-to-date it is).