login about faq

How does one do Keyboard mapping?

asked Dec 14 '10 at 20:23

SSH%20KB's gravatar image

SSH KB ♦
509249246237


In SSH Tectia Client you can control what gets sent to the remote end when a key is pressed. You can do it in two ways:

  1. Using keymap editor in GUI Client Using the keymap editor in GUI client you can do per profile key mappings using the following steps:

    • Go to Edit -> Settings -> Profile Settings -> Keyboard.
    • On the Keyboard page click on "Edit" next to "User Defined Keymap File".
    • Click Add and for Shortcut Key, click in the field and then press the key (or key combination) for which you want to do the key mapping.
    • Select "string" as the function.
    • Enter the string that you want to get sent when the key is pressed.
    • Click OK, Save and Exit. Then OK again to exit the settings. Then use File -> Save Settings.
    • Restart the client and reconnect to the server and try to use key for which you made the mapping. It should now send the string you defined.
  2. Making changes to keymap22.map file You can also make changes to keymap22.map file which can be found in user's profile directory. By default for Windows 2000 users that is C:\Documents and Settings\<user>\Application Data\SSH. Changes to that file affects all connections. If you want to change what gets sent to other end by editing this file, then look for appropriate key definition in the file and change the string that it sends.

If you have changed the mapping in keymap22.map file and also done other mapping for the same key using the keymap editor, then the effective one will be the user defined keymap file done with keymap editor.

Example With the the current key mappings the Home key does not work correctly in most cases when connecting to Linux. Pressing Home key should take you to the beginning of the command line you are typing. Now it just may print string like "^[[2~".

To correct this behaviour using keymap editor (way 1.) do the mapping for Home key and for the string enter \033[1~ or \033[H

To correct by editing the keymap22.map file open the file in text editor (like notepad) and look for string

TH_Home = "\033[2~"

and change it for example to:

TH_Home = "\033[1~"

After that the Home key should work.

link

answered Dec 14 '10 at 20:24

SSH%20KB's gravatar image

SSH KB ♦
509249246237

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1
×1

Asked: Dec 14 '10 at 20:23

Seen: 3,109 times

Last updated: Dec 14 '10 at 20:24

Related questions

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.