Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2018, 03:19 AM
danieldmb danieldmb is offline
Registered User
 
Join Date: Oct 2018
Posts: 2
Post Change physical keyboard (language) settings for sessions

Hi all,

By default when I open SecureCRT, my local keyboard settings (i.e. language) is loaded. I can see this when I go to tools -> Keymap editor.

This is nice when I connect to my linux sessions: SecureCRT seems to adapt my local physical keyboard layout to the one configured at the remote server. So in practice, although the server has a different layout configured (ex. "US"), in my session everything works as if the layout of the remote server is the same as the one in my laptop (ex. "SP").

However, I wanted now to respect the remote server keyboard settings in my session. Is there a way to tell SecureCRT to "follow" the settings found at the remote server?

Hope someone can give me a hand! All the searches I've done so far deal with mapping key strokes to special functions and I believe that what I am looking for is way simpler.

Thanks and regards,
DM
Reply With Quote
  #2  
Old 10-02-2018, 10:39 AM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 654
Hi danieldmb,

I'm not sure that I fully understand the problem you're trying to solve. What trouble are you having? What behavior would you like to see from SecureCRT? Can you elaborate on the "US" and "SP" layout? Where are you getting the layout information?

The SSH protocol does not have any method to exchange keyboard information. This means that SecureCRT does not have any information about the remote systems keyboard setup. In fact, SecureCRT is often connected to devices, such as switches and routers, that do no have a keyboard.
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 10-02-2018, 03:43 PM
danieldmb danieldmb is offline
Registered User
 
Join Date: Oct 2018
Posts: 2
Post

Hi ekoranyi,

Thanks for your reply! In reality, it is a very simple thing.

I have SecureCRT installed in a laptop running Windows 7 with a Spanish keyboard layout (SP). When I open a new SSH session to a remote Ubuntu Linux server, I can type in as if the same spanish keyboard layout were configured at the remote server. This happens even if the keyboard layout set at the remote server is not spanish, but english (us):

Code:
$ cat /etc/default/keyboard 
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"
$ echo $LANG
en_US.UTF-8
I was trying to learn how to disble this behavior for my SSH session so that the remote server could assume that my laptop keyboard is an english (US) layout - as configured at the OS level.

This way, I could for example type in the tilde character "~" by pressing "shift" + "key to the left to nr 1" in my physical spanish keyboard (instead of doing "alt gr" + "4").

Hope it makes more sense now!
Reply With Quote
  #4  
Old 10-02-2018, 04:00 PM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 654
Hello danieldmb,

SecureCRT does not have any way to know what the keyboard configuration on the remote server is. It will always use the local keyboard configuration.

That being said, you may be able to get the behavior you're looking for by using mapped keys. Using the example you provided of "~":
  1. While connected to the session in question choose Options > Session Options
  2. Select the Mapped Keys category
  3. Press the Map a Key... button
  4. When prompted, press the Shift-"~" combination
  5. With the Send String function selected enter a "~" in the send string box
  6. Press OK twice to save your changes

You should now be able to press Shift-"~" and have the appropriate character appear. Does this help get you the functionality you're looking for?
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
keyboard , language


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:24 AM.