LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Keyboard Mapping and Case Management on CentOS 5 (https://www.linuxquestions.org/questions/linux-general-1/keyboard-mapping-and-case-management-on-centos-5-a-639108/)

stlouis 05-01-2008 08:36 AM

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.

unSpawn 05-01-2008 09:21 AM

Quote:

Originally Posted by stlouis (Post 3138712)
CASE Management (converts ALL keyboard data to UPPER CASE)

Couldn't they just use capslock?


Quote:

Originally Posted by stlouis (Post 3138712)
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.


All times are GMT -5. The time now is 12:33 PM.