LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   putty (https://www.linuxquestions.org/questions/linux-newbie-8/putty-815684/)

elainelaw 06-22-2010 10:23 AM

putty
 
I have trying to use putty , I use this program as emulator to telnet our server , but I found some function key is not work , can advise how to map the function key to specific keyboard key ( eg. ^M ) ? thx

smoker 06-22-2010 10:48 AM

Read chapter 4 of puttydoc, which is included with putty, or read it here.

elainelaw 06-22-2010 08:33 PM

Quote:

Originally Posted by smoker (Post 4011526)
Read chapter 4 of puttydoc, which is included with putty, or read it here.

thx reply

I read the doc.

4.4.3 Changing the action of the function keys and keypad
This option affects the function keys (F1 to F12) and the top row of the numeric keypad.

In the default mode, labelled ESC [n~, the function keys generate sequences like ESC [11~, ESC [12~ and so on. This matches the general behaviour of Digital's terminals.
In Linux mode, F6 to F12 behave just like the default mode, but F1 to F5 generate ESC [[A through to ESC [[E. This mimics the Linux virtual console.
In Xterm R6 mode, F5 to F12 behave like the default mode, but F1 to F4 generate ESC OP through to ESC OS, which are the sequences produced by the top row of the keypad on Digital's terminals.
In VT400 mode, all the function keys behave like the default mode, but the actual top row of the numeric keypad generates ESC OP through to ESC OS.
In VT100+ mode, the function keys generate ESC OP through to ESC O[
In SCO mode, the function keys F1 to F12 generate ESC [M through to ESC [X. Together with shift, they generate ESC [Y through to ESC [j. With control they generate ESC [k through to ESC [v, and with shift and control together they generate ESC [w through to ESC [{.
If you don't know what any of this means, you probably don't need to fiddle with it.


but I still not understand how to map the key , for example , if I want to map F5 to ^D in Linux VT220 term , can advise what can i do ? thx

smoker 06-22-2010 10:09 PM

Quote:

Originally Posted by elainelaw (Post 4011497)
I have trying to use putty , I use this program as emulator to telnet our server , but I found some function key is not work , can advise how to map the function key to specific keyboard key ( eg. ^M ) ? thx

I was suggesting a way to try getting the F keys working. I don't think you can map them to other keys in puTTY

jefro 06-23-2010 03:13 PM

Might be that instead of using putty you can use some terminal emulator and assign the keys that way?


All times are GMT -5. The time now is 05:23 PM.