key map problem [1]

key map problem

Wednesday, March 30, 2016 1:35 AM - xinxin

Hi,

I would like to use some key mapping by sending some string:
shift+arrow left
shift+arrow right
shift+arrow up
shift+arrow down

I check the key mapping code from other teriminal software for "shift+arrow left" is "[1;5D". But after plugging it in xshell, It types in some character rather than escape control code.

Do you have any suggestion for this?

Thanks

Program Ver. : Xshell 5


Re: key map problem

Friday, April 1, 2016 1:15 AM - Support

Xshell 5 does not prepare the key values for the shift arrow keys. Shift+up and Shift+Down each do scroll up, scroll down respectively.

You can achieve what you want by using the key remapping feature of Xshell.
In the Custom key mapping dialog of Tools -> option, remap the keys like such:

Shift Up => \033[1;2A
Shift Down => \033[1;2B
Shift Right => \033[1;2C
Shift Left => \033[1;2D

\033 is the ESC character and equivalent to ^[.

The next article may be of help:

https://www.netsarang.com/extrafiles/xshell/3755/ASCII_Control_Characters

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog


Previous views: 134