LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2008, 08:36 AM   #1
stlouis
Member
 
Registered: Jul 2006
Location: Sault Ste. Marie, Ontario
Distribution: RedHat, CentOS, Fedora Core, Gentoo, Slackware
Posts: 63

Rep: Reputation: 16
Keyboard Mapping and Case Management on CentOS 5


Hi Everyone,


I have a question that I could use some help with. I am running character based software on a CentOS Server using a combination of PuTTY and Anzio WIN as my Terminal Emulators.

I am using SSH as my method of communication.

Everything is working great, however there a few features that Anzio WIN contains that I would like to be able to replicate with PuTTY.

The two features are:

Mapping Function Keys to run Macros

CASE Management (converts ALL keyboard data to UPPER CASE)


I was wondering if there is a way I can do this using a BASH script that gets ran from the users .bash_profile.

Is there a way I can tell the system to take ALL incoming data from the Terminal's keyboard and convert it to upper case, by default, an on a per user basis... If they have the entry in their .bash_profile, then it is applied, if NOT, then it is NOT applied.

And for the Keyboard Function Key mappings, here is an example of what I would like to do.

Let's say when the "F1" is selected, it sends the following string of numbers:

75 20 1

and "F2" would run

18 1 1 3 1 20 75 20 1

The numbers are basically just options on a Character Based menu to be selected. So instead of having to enter all the numbers, each time, I can map an Function Key to send the sequence, therefor reducing the amount of time it takes to run a function...

Any help is very much appreciated and/or links to articles that may help me in my venture.


Thanks In Advance.
 
Old 05-01-2008, 09:21 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by stlouis View Post
CASE Management (converts ALL keyboard data to UPPER CASE)
Couldn't they just use capslock?


Quote:
Originally Posted by stlouis View Post
Mapping Function Keys to run Macros
For serverside there's an example for just that at the bottom of 'man keymaps' (but I can't see how 'loadkeys' can be confined to (or triggered by) a useraccount: maybe someone else knows). For clientside, and if run from a DE, maybe a macro recorder like http://xmacro.sourceforge.net/, http://hoopajoo.net/projects/xautomation.html or http://micans.org/zoem/ could work. Else, if none of this matches and you're running PuTTY from Windows, then IMHO this thread should be in /General.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard mapping BartVG Linux - Newbie 3 09-17-2007 02:25 PM
Keyboard mapping cdhjrt Linux - Software 5 11-03-2005 04:29 PM
Keyboard Mapping ZeroX-2 Slackware 4 10-02-2004 07:58 PM
keyboard mapping minike Slackware - Installation 4 09-01-2004 02:48 PM
X and keyboard mapping krajzega Slackware 1 02-24-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:19 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
Open Source Consulting | Domain Registration