-----BEGIN PGP SIGNED MESSAGE-----
On 4-Mar-08, at 3:36 PM, Brian McKee wrote:
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
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
should work to change VTs though, and from there you should be
log in and kill tn5250 (remember that right-control is enter
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
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
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
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.
PLEASE NOTE I CREATED AN RPM USING CHECKINSTALL RATHER THAN RPM FROM
URPMI SO YOUR RESULTS MAY VARY...
This is a bit of a nasty hack, but by adding these lines to the end of
you get Shift-Tab, F21 thru 24 and I've decided to try Shift and
Keypad Plus as Field+, Shift and Keypad Minus as Field-
keycode 15 = Tab F100$
keycode 78 = KP_Add Control_x$
keycode 74 = KP_Subtract Meta_m$
string F21 = "\033[35~"$
string F22 = "\033[36~"$
string F23 = "\033[37~"$
string F24 = "\033[38~"$
string F100 = "\033[Z"$
I might try this same approach (hacking the default rather than
setting a new keymap) on Ubuntu gutsy too.
Hope this helps somebody.
(Comments still appreciated)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Verify this email or encrypt your email for free - see gnupg.org
-----END PGP SIGNATURE-----