|
To add to my last message... If you need to use per-user changes (i.e. not everyone on the system uses the same keyboard mappings) then probably the ~/.Xdefaults file is the best way. I think what you may be doing wrong is that you're not including everything that belongs in the file. It's important to understand that .Xdefaults is not part of TN5250. It's part of X11! You can use it for a LOT of different things, keyboard mapping in tn5250 is just one of many. Here is a very simple ~/.Xdefaults file that just changes the Return and Right Control keys: xt5250*VT100.Translations: #override\n\ <Key>Control_R: string("\n") \n\ <Key>Return: string("\030") note that the \n\ at the end of each line is a "continuation" thing... it tells X11 that the following line is part of the same configuration set... So, if you had settings for multiple programs, it might look like this: xt5250*VT100.Translations: #override\n\ <Key>Control_R: string("\n") \n\ <Key>Return: string("\030") vi*VT100.Translations: #override\n\ <Key>KP_Enter: string("\n") \n\ <Key>Insert: string("i") xterm*VT100.Translations: #override\n\ <Key>F9: string("\033OA") Maybe that'll help... On Fri, 28 Mar 2003, Scott Klement wrote: > > Ignore the whole ".Xdefaults" and ".Xresources" idea. Instead, make > your changes in /usr/local/share/tn5250/XTerm (it might be installed > somewhere else on your system, tho... you might need to do something > like "find / | grep tn5250/XTerm" to find it. > (and make sure you capitalize the X & T in XTerm) > > There are already keyboard mappings set up in that file, so you'll > be able to see what needs to be done a little bit better. > > This only works when using the xterm version of tn5250 (xt5250). For > other versions, you need to the keyboard mapping differently. >
As an Amazon Associate we earn from qualifying purchases.
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.