There are two things that control how keys are mapped from the xterm into tn5250. (Keep in mind that tn5250 itself does not do keyboard mapping, your Xterm does it. If it wasn't done this way, you wouldn't be able to use tn5250 from telnet sessions or from a terminal) The two things are: the terminfo (or termcap) file and the Xresources set in the XTerm file. For most simple keyboard mappings, you'll just want to change the XTerm. It is /usr/local/share/tn5250/XTerm on my system. It may be in a different location on yours. (To find out, bring up the xt5250 script and look to see what the pkgdatadir variable points to.) In the XTerm file, add a line that looks like this: ~Shift<Key>Print: string("\020") \n\ to make the print screen key send a ctrl-P to the emulator when the print screen button is pressed. (Ctrl-P will be interpreted as print screen) Likewise, something like: <Key>Control_R: string("\015") \n\ would cause enter to be sent when the right control key is pressed. <Key>Control_L: string("\022") \n\ causes Ctrl-R (interpreted as "Error Reset") when left control key is pressed. <Key>Escape: string("\001") \n\ causes Ctrl-A (interpreted as "Attn") when Esc is pressed. Personally, I run the program called "xev" to see what the keys are called. (e.g. when I run xev and hit the right control key, it says "Control_R") and I type "man tn5250" to see what strings I want to send to the emulator. Hope this helps. On Tue, 27 Mar 2001, Ernst Bekker wrote: > Apology for inadequate information. > > My system setup is Mandrake Linux 7. I use tn5250-0.16.0-1. in X I use the > xt5250 script which I expect to fire up the emu of choice for the software. > > Thank you, > -- Ernst Bekker -- > -- IS Services -- > > ----- Original Message ----- > From: "Ernst Bekker" <firstname.lastname@example.org> > To: <LINUX5250@midrange.com> > Sent: Tuesday, March 20, 2001 3:49 AM > Subject: Hi. How would i go about changing the keyboard .... > > > > To implement the software as painlessly as possible for my users I need to > > be able to customize the keyboard. > > Example ctrl for enter, esc for attention, PrintScrn to print andsoforth. > > > > Where should I start ? > > > > Thanks In Advance > > > > -- Ernst Bekker -- > > -- IS Services -- > > +--- | This is the LINUX5250 Mailing List! | To submit a new message, send your mail to LINUX5250@midrange.com. | To subscribe to this list send email to LINUX5250-SUB@midrange.com. | To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.