|
On Thu, 17 May 2001, Paolo Fiore wrote: > > Scott, sorry if I've just partially quoted your original msg! I'm > dragging&dropping from IE to Outlook... and this is quite explaining what I > know about "gnu/linux"! Yep, I'm a newbie and know very very few about > shell, X, term, scripts.... but if you wanted a perfect Cobol program I'm > the one to ask for :) > > So, good morning to the all mailing list! > > > ~/tn5250/XTerm > > <Key>Control_L: string("\022") \n\ > > causes Ctrl-R (interpreted as "Error Reset") when left control > > key is pressed. > > Personally, I run the program called "xev" and I type "man tn5250" > > to see what strings I want > > I gave a look at the man page, but I didn't find those "hex" values... Which hex values? > - because I'd need another modification: having the Return acting as "New > Line" Could also be I'm loosing something :( in yr example who's > receiving Ctrl-R & from who? In my example, when you press the LEFT CONTROL KEY (Control_L means left control key in my example) it instructs the xterm to send an ASCII 022. Whenever you see a number like "022" (with one leading zero) in a UNIX or C-language context, it means "octal 22". In other words, octal 022 is the same as hex 0x12 (sometimes written as x'12') and the same as decimal 18. So... The Left Control Key will send an ASCII 18 to the Linux kernel. The Linux kernel will try to look up ASCII 18 in it's terminfo database, but it'll fail since there is no special meaning for ASCII 18. Finally, it'll send the ASCII 18 to tn5250. If you whip out your ASCII chart and take a look, you'll find that ASCII 18 is Ctrl-R (i.e. it's the same as holding down a control key and pressing R) When tn5250 sees a Ctrl-R, it thinks you wanted an error-reset key to be pressed. THIS is documented in the manpage for tn5250. > TN5250 feels the ctrl-L and sends to xterm a ctrl-R? And xterm knows through > the terminfo that ctrl-R means send to the AS an "Error reset", sounds? > Am I enough confused? Don't get "Control_L" confused with "ctrl-L". "Control_L" is the "Left Control Key". "Ctrl-L" is "holding down control and pressing L". Yes, that's confusing... :) But if you type "man tn5250" you'll see a line that says: Reset C-r, M-r this means that to make tn5250 do an error-reset, you need to either press Ctrl-R (hold down the control key and press R) or Meta-R (Which is generally ESC R) That's why in my example, I had Control_L (the left control key) sending a string of Ctrl-R (ASCII 18). Because this makes xt5250 see the left control key as error reset... Does that help? +--- | 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: david@midrange.com +---
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.