Xshell Forum

key map problem

Last post: Friday, April 1, 2016 1:15 AM by Support, 1 reply

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

key map problem


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?


Program Ver. : Xshell 5
Friday, April 1, 2016 1:15 AM - Support

Re: key map problem

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:


Technical Support

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