ITEM: G7131L

Need help remapping function keys F1 - F4


Question:

Level: 3.2.5 
Model:

I need help remapping function keys F1 - F4 on an Xstation.
For example, I want the F1 key to send the 
sequence: \a@\

Response:

You will have to create a *.in file under the /usr/lib/nls/termmap directory,
Where "*" is any file name he chooses.

Each line in the *.in file will contain an input sequence, a colon, and an
output sequence.

You will have to get the key sequence that is generated by the certain function
key.  Do this with the "od -x" command.  For example:

issue the od -x command
hit the function key   (e.g., F12)
hit return
\-D

This will display 0000000 1b5b 3031 3271 0a00

Zeros indicating the start, 1b5b...3271 being F12, and 0a00 being \.

You will also have to get the key sequence of what you want to remap it to.
For example, issuing "od -x" for the "ls" command gives us 0000000 6c73 0a00.

Zeros being the start, 6c73 being "ls" and 0a00 being \.

After collecting the above data, the following will be placed in the *.in file
to remap the F12 key to perform an "ls".

\\x1b\\x5b\\x30\\x31\\x32\\x71:\\x6c\\x73

You will now have to load the *.in file with the setmaps command.
\#setmaps -r -l *.in       (Must be root)
\#setmaps -i *.in           (Don't have to be root)

NOTE: This will only load the mappings for the current session.  



Support Line: Need help remapping function keys F1 - F4 ITEM: G7131L
Dated: February 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:49
Comments or suggestions? Contact us