Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Out of control in Net::Telnet

by dakkar (Hermit)
on Nov 25, 2002 at 14:08 UTC ( [id://215620]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://215620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (1)
As of 2024-04-19 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found