On 26-Feb-08, at 9:25 AM, Brian McKee wrote:
On 25-Feb-08, at 6:58 PM, Alex Mauer wrote:
On Mon, 2008-02-25 at 17:50 -0600, Alex Mauer wrote:
"export TERM=5250" or "set TERM 5250" (or "set TERM=5250"?)Oh, forgot to add that this requires the terminfo definition for the
your shell. This tells tn5250 and/or terminfo/termcap to
"F100" string defined in the us5250 map as a backtab.
5250 terminal, which should be installed when tn5250 is.
And I should have also mentioned that the following two mappings mean
that you have *no* control keys, meaning that control+alt+F# to
VTs won't work, and control+Q to exit tn5250 also won't work. Alt +F#
should work to change VTs though, and from there you should be
log in and kill tn5250 (remember that right-control is enter though!)
and 'loadkeys -d' will load the default kernel keymap, allowing
get the standard keymap back.
Is it universal across all the consoles? i.e. once I run loadkeys on
one terminal they are all changed?
Since control-alt to change screens is a staple for the users now, I
may just leave those control keys alone. Control-R for reset is at
And since it's the field+ and field- I was after most, I'm guessing I
need to change
keycode 74 = KP_Subtract
keycode 74 = Control_x
keycode 78 = KP_Add
keycode 78 = Meta_m
Responding to may own note for the archives more than anything else...
For Ubuntu gutsy...
sudo aptitude install console-data
Add this to the tn5250.map included with tn5250 install (note reversed
keycode 78 = Control_x
keycode 74 = Meta_m
sudo loadkeys us5250.map
export TERM=5250 #(not TERM=tn5250!)
tn5250 now works as expected until you reboot.
According to the man page install-keymap should make the change
permanent, but it doesn't (see bug#1918463 on launchpad)
Note this means that the keypad plus and minus keys are now useless for
regular console use (on all consoles!) until you do
sudo loadkeys -d
I think I understand now why the original programmer made the keypad
plus and minus be field+ and field- on signed fields only - there must
be some custom code in there to capture that, and done that way the
keypad still works as expected in a regular console....
Now I'm off to reproduce this on older Mandrake boxes.
This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact