Xshell Forum

Key Mapping in *.tkm file

Last post: Friday, March 9, 2018 7:24 PM by Support, 5 reply

 
Sunday, March 4, 2018 11:25 AM - xcme

Key Mapping in *.tkm file

 
Hello!

I downloaded xshell 5 yesterday and now trying to customize some settings. Generally I'm working with a network equipment. With basic settings for a terminal there is no support for keys Home/End and Ctrl+Left/Ctrl+Right. It's very annoying. In xshell I quckly found a solution with 'Key Mapping'. Now my CustomKeyMap.ckm contains these strings:
Home=[1]\001
End=[1]\005
Ctrl+Right=[1]\033f
Ctrl+Left=[1]\033b

With these settings Home/End and Ctrl+Left/Ctrl+Right work perfectly with Cisco/Juniper terms and etc. But settings in 'Key Mapping' is a global settings and it applies to ALL terminals. In case with standard linux terminal these settings are not necessary. So, I need a solution how to apply these setting only for specified terminal. I tried to remove these setting from 'Key Mapping' and specify an alternative key mapping file for Cisco terminal, but nothing happens. I guess *.tkm file have an another format and I did something wrong. Could anyone help me with it? I just need the mappings mentioned above working with *.tkm file, without global 'Key Mapping'.

Program Ver. : Xshell 5
Wednesday, March 7, 2018 5:09 PM - Support

Re: Key Mapping in *.tkm file

 
Key mappings cannot be applied to each session differently, however, Quick Commands can. Therefore, if you use Quick Commands and map certain Quick Commands to certain keys, you can achieve the desired effect.

For example. in the desired session:

1. Set the first Quick Command to send string [1]\033f.
2. In custom key mappings, map Ctrl+Right to [Quick Command] Command #1
3. In other sessions, you can set the first Quick Command to send nothing or something else.

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog
Thursday, March 8, 2018 1:49 PM - xcme

Re: Key Mapping in *.tkm file

 
Thank you very much! It's working for me! But question about *.tkm still opened. You said 'Key mappings cannot be applied to each session differently' but why Terminal/Keyboard section contains an option for an alternative key mapping file? How it works?
Friday, March 9, 2018 5:34 PM - Support

Re: Key Mapping in *.tkm file

 
.tkm files are part of a legacy system and are only for function keys (F1~F20)

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog
Friday, March 9, 2018 5:54 PM - xcme

Re: Key Mapping in *.tkm file

 
Thank you for clarifying. I think this topic can be marked as 'solved' now.

P.S. After several days of use xshell I consider it as very convient tool. I will recommend it for my friends.
Friday, March 9, 2018 7:24 PM - Support

Re: Key Mapping in *.tkm file

 
We appreciate it! Thank you for choosing Xshell!

Technical Support

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