Re: Key mapping and font size

Aaron Bartell <[email protected]>
Newsgroups gmane.comp.emulators.tn5250
Message-ID <[email protected]>
   Hi Brian,

   I have modified the XTerm file and it has changed the right controls key
   behavior, but it has changed it to act as the enter key (in addition to
   the actual enter key).

   Where did you find the various options for the string() value and their
   meanings?

   Also, the font_* stuff is working well with xt5250.

   Aaron Bartell
   http://mowyourlawn.com

   Brian Hill wrote:

 Hello Aaron,

 I can't tell you how to fix any of those things using tn5250 however I
 can help you with using xt5250.

 To change the keymapping you'll probably want to change the XTerm file
 (I'm running Kubuntu 8.04 and my XTerm file is located at
 /usr/share/tn5250).  Open that file up (note: you'll likely need to be
 the root user or use sudo) in whatever text editor you're comfortable
 with and add these three lines:

 <Key>BackSpace: string(0x7F) \n\
 <Key>Control_L: string("\022") \n\
 <Key>Control_R: string("\015") \n\

 That will fix your backspace and control keys the way you want.

 To make the font larger using xt5250 after you start the program (type
 "xt5250 red" without the quotes at a command line) hold down your
 control key and right click (and hold the mouse button down) on the
 window that opens up - move the mouse cursor down to the "huge" setting.

 I know these issues have been discussed before (I know because I asked
 about them myself!) so if you do some searching of old messages you'll
 likely find a lot more information.

 If you must use tn5250 instead of xt5250 (they are both part of the
 tn5250 package by the way) I'm sure Scott or James or someone else can
 give you instructions on that.

 Good luck!
 Brian

 Aaron Bartell wrote:
  

    Hi all,

    I had forgotten I subscribed to this list awhile back and with the flurry
    of activity this past month with getting the new version I have become
    interested in getting TN5250 working on my system.

    I have TN5250 up and running just fine but there are a couple of things
    that are driving me nuts.  One, I can't seem to get my keys remapped - in
    particular I can't get the Field Exit to be mapped to the Right Control
    key, the "reset" key mapped to the Left Control key, and have the
    backspace key delete the text it is backspacing over.  I have brought up
    us5250.map in an editor but am completely lost as to how I can make the
    changes I detailed above - is there a man page for how the keycode works?

    The other issue I am having is getting the resolution to be higher (i.e.
    bigger font for my already failing eyes).

    I have read through James' fine tutorial and have put together the
    following .tn5250rc file in my home directory.  The font values were taken
    from the xfontsel command which is what I am assuming I was supposed to do
    but it doesn't seem to have any effect.  I

    red {
         host = 192.168.11.22
         env.TERM=IBM-3477-FC
         +uninhibited
         env.USER = AARON
         font_80=-monotype-*-*-*-*-*-20-*-*-*-*-*-*-*
         font_132=-misc-*-*-*-*-*-20-*-*-*-*-*-*-*
    }

    I am using tn5250 version 0.17.3

    On a final note I am fairly new to Linux (switched over in the past 6
    months) so if I am being totally dumb with something you will know why :-)

    Aaron Bartell
    http://mowyourlawn.com
  
    

  
-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.