LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2010, 07:21 AM   #1
_ON
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Rep: Reputation: 0
Environment variable containing the current keyboard layout


Hi.

I have two keyboard layouts installed in my system and I need to determine in scripts which one I'm on. What the environment variable contains indicator of current keyboard layout?

Debian GNU/Linux 5.0.4;
GNOME 2.22.3.
 
Old 05-19-2010, 12:04 AM   #2
kurwongbah
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 23
Hi there!

If I remember correctly, keyboards are physically attached and thus belong to a specific hardware configuration.

In Fedora/RedHat you can find the configuration for the attached keyboard device in: /etc/sysconfig/keyboard

Once you log in to a remote system you'll be given a tty, tty's use a terminal emulationspecific
This emulation -so to speak- maps your physical keyboard keys into a 'virtual' key map generic for a certain terminal.
Terminal emulations are abundant, but usually refer to a standardized keyboard layout from a major OEM (from times long gone...)
The type of emulation for your current session can be found in the env variable called: TERM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting current keyboard layout (using hal) wgac Slackware 10 12-09-2009 10:21 AM
show the current keyboard layout tramni1980 Slackware 2 10-04-2007 09:40 AM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 07:43 PM
Setting environment variable to current date/time nafan Programming 1 08-23-2004 10:04 PM
edit path environment variable to include current working directory alb1954 Linux - Newbie 8 07-12-2004 12:26 AM


All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration