[comp.sys.apollo] TN3270/Function keys

obrennan@cc3.cc.umr.edu (obrennan) (10/17/90)

		
> 		Hi Gerry
> 		
> 		I'm after the same info as you about function key escape sequences.
> 		Would you send me any more info/references you receive.
> 		
> 		Thanks in advance,
> 		Ceri
> 		-----
> 		Ceri Hopkins                                    
> 		Dept. of Computer Science                         cah@uk.ac.bham.cs
> 		University of Birmingham			  Tel. +44-21-414-3708

Apparentally, Apollo has fixed something in one of the system libraries 
(clib,streams...), and thus I was able to get TN3270 running at SR10.2. 
I had to make a few subtle changes to get the program to MAKE, but it 
appears to work just fine for the Apollo_15_color, VT100, and XTERM. 
I tend to like it better under X.

One of the problems I ran in to was mapping the DM function keys in the MAP3270
file. I have all of the function keys working using the standard <cntrl> and
<esc> sequences (i.e. <esc>1 for PF1) but would like to map the DM keys.
	
Apollo essentially informed me that using their terminal emulators only keys
F2 through F7 are available (which agrees with what I found). Here are the keys 
I have determined for the APOLLO_15_COLOR terminal (and I believe VT100):

   F2 - <esc>OP        <shift>F2 - <esc>Ow
   F3 - <esc>OQ        <shift>F3 - <esc>Ox
   F4 - <esc>OR        <shift>F4 - <esc>Oy
   F5 - <esc>OS        <shift>F5 - <esc>Om
   F6 - <esc>Oq        <shift>F6 - <esc>Os
   F7 - <esc>Or        <shift>F7 - <esc>OM

   CHAR DEL     - <cntrl>?
   LINE DEL     - <esc>[M
   Cursor up    - <esc>OA
   Cursor down  - <esc>OB
   Cursor right - <esc>OC
   Cursor left  - <esc>OD
   Tab          - <cntrl>i
   Return       - <cntrl>m
	
From what I can tell the mappings above are correct. I also have determined
some of the X window key mappings (I believe you can actually control those
with XMODMAP or something, I just haven't had the time to really dig here)
in case your interested.

There are 2 questions I have regarding the above:

    1) does anyone else have the information for the other
       key definitions so that I can support F1, F2....

    2) I would like to setup an ALT key under X-windows 
       so that when I have an XTERM running on a PS/2 AIX box
       (displaying the window on the Apollo) I can use the ALT
       key for the DOS environment. From what I have gathered
       I need to run XMODMAP with the following:

                add Mod1     = Alt_L
                keysym Alt_L = Meta_L  
     
       to set up F0 as the ALT key and it doesn't work. 
       Am I missing something here? 


If anyone needs the details for what I did to build the TN3270 at
SR10.2 let me know. I FTPed the source from UUNET.UU.NET
                           
Any help on my 2 questions above would be greatly appreciated.  
	
	


Gerry O'Brennan
Programmer/Analyst
Computing Services
University of Missouri - Rolla
------------------------------
obrennan@apollo.cc.umr.edu
c0022@umrvmb.umr.edu          
------------------------------