× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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"?)
depending on
your shell. This tells tn5250 and/or terminfo/termcap to
interpret the
"F100" string defined in the us5250 map as a backtab.
Oh, forgot to add that this requires the terminfo definition for the
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 change
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 able to
log in and kill tn5250 (remember that right-control is enter though!)

and 'loadkeys -d' will load the default kernel keymap, allowing you to
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 least
memorable.

And since it's the field+ and field- I was after most, I'm guessing I
need to change

keycode 74 = KP_Subtract
to
keycode 74 = Control_x
and
keycode 78 = KP_Add
to
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
from above!)

keycode 78 = Control_x
keycode 74 = Meta_m

then

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)
<https://bugs.launchpad.net/ubuntu/+source/console-data/+bug/198483>

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.

Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Verify this email or encrypt your email for free - see gnupg.org

iD8DBQFHzbK6GnOmb9xIQHQRApVQAKDKKu5riWfgi+c/UHUNRjTMuIZ0TACg5DRU
XEEyCEnVAAcuhUes3lWkJHg=
=mkYQ
-----END PGP SIGNATURE-----

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.