xterm termcap entries for using Informix under the X windowing system This file is a collection of termcap entries submitted by Informix users and/or grabbed off of the Net. They have been accumulated here without testing or editing, so of course "your mileage may vary." The entries in this file support the following terminals, windows and environments (listed in the order in which they appear in this file): o Xterm terminal emulator (X window system) on SPARCs running Open Windows and generic X11R5 from MIT o Xterm with informix defines for graphics and display attributes o Sun Microsystems Workstation/console "sun-cmd" o GENERIC xterm (non-color) o Modified Informix 4GL ansi color, function keys, and box borders o Sequent 2000/200 using color Send any termcap or terminfo entries to be added to this collection to walt@mathcs.emory.edu or {...,gatech,rutgers,uunet}!emory!walt. ============================================================================== From: jeffl@isg.com Date: 7 May 92 00:23:13 GMT Here is the xterm window termcap entry we use. It seems to work on SPARCs running both Open Windows and generic X11R5 from MIT. vs|xterm|vs100|xterm terminal emulator (X window system):\ :cr=^M:do=^J:nl=^J:bl=^G:le=^H:ho=\E[H:\ :co#80:li#65:cl=\E[H\E[2J:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\ :md=\E[1m:mr=\E[7m:me=\E[m:\ :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\ :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~:k4=\E[15~:\ :k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:k9=\E[21~:\ :kY=\E[216z:kZ=\E[222z:\ :ta=^I:pt:sf=\n:sr=\EM:\ :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:\ :MT:ks=\E[?1h\E=:ke=\E[?1l\E>:\ :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:\ :rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:xn:\ :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\ :ti=\E7\E[?47h\E(B\E)0:te=\E[2J\E[?47l\E8:\ :hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:\ :gs=^n:ge=^o:gb=lmkjqx: -- Jeffrey F. Lawhorn American TriTech/ISG Programming Manager C, C++, and Database Consulting jeffl@isg.com 450 B Street 16th Floor sdsu!isg100!jeffl San Diego, CA 92101 (619) 234-3405 x274 ------------------------------------------------------------------------------ From: wengland@stephsf.com (Bill England) Date: 2 Jun 92 20:09:33 GMT # Xterm with informix defines for graphics and # display attributes. # xt|xterminf|vs100|hdsxterm|xterm terminal emulator (X window system):\ :ms:bs:xn:\ :co#80:li#24:\ :sg#0:\ :cl=50\E[;H\E[2J:\ :cm=\E[%i%2;%2H:nd=2\E[C:up=2\E[A:\ :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\ :is=\E>\E[?3l\E[?4l\E[?5l\E[?8h:\ :ks=\E[?1h\E=\E(B\E)0\E[?7l:ke=\E[?7h\E[?1l\E>:\ :cs=\E[%i%d;%dr:sf=\ED:sr=\EM:\ :al=\E[L:dl=\E[M:\ :kb=^H:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kh=\E[H:\ :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~: \ :k4=\E[15~:k5=\E[17~:k6=\E[18~:k7=\E[19~: \ :k8=\E[20~:k9=\E[21~:kA=\E[23~:kB=\E[24~: \ :gs=\E(0:ge=\E(B:gb=lmkjqx: \ :ZG#0:\ :ZA=\E[0%?%p1%{0}%>%p1%{4}%<%&%t;1%;%?%p2%t;7%;%?%p3%t;5%;%?%p4%t;4%;m: -- +- Bill England, wengland@stephsf.COM -----------------------------------+ | * * H -> He +24MeV | | * * * ... Oooo, we're having so much fun making itty bitty suns * | |__ * * ___________________________________________________________________| ------------------------------------------------------------------------------ From: jsango@sni232.orl.mmc.com (Jason Sango) Date: Mon, 11 Jan 93 07:50:10 EST <<<<<<<<<<<<<<<<<<<<<<<<<<<<< CUT HERE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Mu|sun-cmd|Sun Microsystems Workstation console modified for use w Informix:\ :am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\ :ce=\E[K:cd=\E[J:\ :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:rs=\E[s:\ :md=\E[1m:mr=\E[7m:me=\E[m:\ :al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\ :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\ :up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\ :k0=\E[224z:k1=\E[225z:k2=\E[226z:k3=\E[227z:k4=\E[228z:\ :k5=\E[229z:k6=\E[230z:k7=\E[231z:k8=\E[232z:k9=\E[233z:\ :kA=\E[234z:kB=\E[235z:\ :kf=\E[222z:kg=\E[216z:\ :te=\E[>4h:ti=\E[>4l:gs=:ge=:gb=******: # This termcap file is a combination of the standard sun termcap entry from # /etc/termcap and the sun-cmd termcap entry from /etc/termcap (te= and ti= # entries represented). This termcap has also been modified to map the # function keys F1 - F12 on a Sun Type 4 keyboard so that the Informix "ON KEY" # command and "OPTIONS" statement will respond when the the product is being # run under Openwindows Version 2.0 and 3.0 in a Command Tool Window # (represented by the k0 - kB (F1 -F12) entries respectively). # Use of the extended Function key designations (kC (F13) - kZ (F36)) in # Informix does not seem to work on a Sun SPARCstation. Informix also provides # for a specific feature in the termcap file to map the NEXT PAGE, PREVIOUS # PAGE, INSERT LINE and DELETE LINE keys in a screen array using the termcap # entries kf=, kg=, ki= and kj=. The use of this feature is limited under # Openwindows to some of the keys which have an escape sequence defined in the # $OPENWINHOME/lib/.ttyswrc file, the author was not able to get the L2-L4 # keys to work properly or many of the R keys either. # In this termcap, kf (NEXT PAGE) and kg (PREVIOUS PAGE) # are assigned to the PgUp and PgDn keys on the keypad. The user wanted to # have INSERT LINE (ki) and DELETE LINE (kj) assigned to the Ins and Del keys # on the keypad but this was not possible using these Informix specific # termcap features. In order to achieve the desired objective, it is necessary # to fool Informix and your keyboard using the following methodology: By # assigning the logical Function Keys F11 and F12 respectively, # you can bind the Ins and Del keys to F11 and F12 using xmodmap. Another # problem arises if you are switching between applications which are not all # written in Informix. The workaround is very straightforward, never run your # Informix applications directly, rather, run shell scripts to launch them and # in this shell script embed the commands to point to this termcap and bind # your F keys. A sample script follows: # # Script to set Informix termcap and bind Ins and Del keys to L3 and L4. # #!/bin/csh -f # setenv TERM sun-cmd # setenv TERMCAP /$PWSHOME/etc/pwstermcap #(Location of this termcap file) # xmodmap -e 'keysym Insert = SunXK_F36' # Binds Keypad Ins Key to F11 # xmodmap -e 'keysym Delete = SunXK_F37' # Binds Keypad Del Key to F12 # xmodmap -e 'keycode 73 = SunXK_F37' # Binds Keyboard Del Key to F12 # cmdtool csh -c "reset;filename.4ge&" # # End of sample script # # It is important to note several things here. To ensure that the environment # which is going to run the Informix application is "clean", be sure to locate # your shell script and executable in different directories. Testing has # also revealed that the use of "reset" is necessary when firing off Informix # applications in background mode (eg filename.4ge&) to keep things straight. # If you wish to bind to other keys, you can get a listing of current key # assignments by doing a xmodmap -pk from the command line (eg the values # for F11 and F12 were found using this method), for any assigments # other than those provided here you are on your own. Your work # is not finished at this point, you still need to include the OPTIONS in # your Informix Application: # # OPTIONS # INSERT KEY F11, # DELETE KEY F12, # . # . # . # # A little bonus results from this action, F11 & Ins both work for INSERT and # F12, keypad Del and keyboard Delete work for DELETE. # Please note that Informix will automatically default to using the keys you # have specified for PREVIOUS and NEXT because they were directly mapped from # the .ttyswrc using the Informix specific termcap entries. # One last caveat in this process, to reset your environment # back to the way it was before you ran the Informix application using the # xmodmap modifications, you need to include code under your program exit # menu that runs to xmodmap statements: # # Sample 4gl reset code # # COMMAND KEY (x) "eXit" "Exit this application" # RUN "xmodmap -e 'keycode 101 = Insert'" # RUN "xmodmap -e 'keycode 57 = Delete'" # RUN "xmodmap -e 'keycode 73 = Delete'" # EXIT PROGRAM (0) # END MENU # END FUNCTION # # The EXIT PROGRAM (0) is used to get a clean exit from a background process, # (eg filename.4ge&). Please note, tha the man pages under xmodmap say you # can run xmodmap filename where filename represents a file that contains the # xmodmap expressions to be executed, I was unable to get my Informix # application to recognize my keyboard remapping using this method thus I used # the straight command line version of xmodmap which works fine. This termcap # also contains entries to change the default graphics border to *'s which is # an Informix specific feature (gs=,ge=, and gb= entries represented). Please # note, in order to have the function keys respond it is also necessary to # disable the F1 key in your ~/ .xinitrc file by commenting out the # xmodmap -e 'keysym F1 = Help' line in the file. This information is # provided as is and without expressed or limited warranty of any kind by # anyone involved in the creation, production, or distribution of this text. # Many thanks to David Cortesi at Informix and the Technical Support Staff # at Sun Microsystems for providing me with the pieces to fit this puzzle # together. # # Created by Jason A. Sango, Martin Marietta Missile Systems, 4 May 1992. # jsango@sni232.orl.mmc.com, Telephone (407) 356-1370 <<<<<<<<<<<<<<<<<<<<<<<<<<<<< CUT HERE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -- Jason Sango Martin Marietta Missile Systems Company Email: jsango@sni232.orl.mmc.com Telephone: (407) 356-1370 ------------------------------------------------------------------------------ From: 4gen!psi!ravi@uunet.uu.net (Ravi Karve) Date: Wed, 30 Jun 93 12:07:00 -0400 # GENERIC xterm (non-color) (courtesy of ravi@psi) xterm|Xterm|xterm terminal emulator/DEC vt100:\ :ae=^O:al=\E[L:as=^N:bs:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:\ :cm=^H\E[%i%d;%dH:co#80:li#24:cs=\E[%2;%2r:dc=\E[P:dl=\E[M:\ :do=\E[B:ho=\E[H:ic=\E[@:is=\E[?3l\E)0\E(B:\ :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~:k4=\E[15~:k5=\E[17~:\ :k6=\E[18~:k7=\E[19~:k8=\E[20~:k9=\E[21~:kA=\E[23~:kB=\E[24~:\ :ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[h:\ :nd=\E[C:pt:re=\E[p:ru=\E[24p:se=\E[m:\ :so=\E[7m:sr=\EM:ue=\E[m:up=\E[A:us=\E[4m:up=\E[A:\ :GS=\E(0:GE=\E(B:\ :G1=k:G2=l:G3=m:G4=j:GC=n:GD=w:GE=\E(B:GH=q:GL=u:GR=t:GU=v:GV=x:\ :gs=:ge=:gb=\311\310\273\274\315\272: -- Ravi Karve UUNET: 4gen!psi!ravi@uunet.uu.net (Ravi Karve) Performance Software, Inc. 1129 Bloomfield Ave Suite 112 West Caldwell, NJ 07006 USA ------------------------------------------------------------------------------ From: lester@access.digex.net (Lester Knutsen) Date: 15 Aug 1993 19:54:28 -0400 The following is the ansi termcap entry I have used with Informix and ansi X terminals on SCO ODT, Procomm, Xtalk for Windows, SCO ansi console. It provides graphic lined boxes around a window, function keys 1 to 10, and the 8 basic colors Informix 4GL programs support. # modified Informix 4GL ansi color, function keys, and box borders ansi|Ansi standard crt:\ :al=\E[L:am:bs:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\ :dc=\E[P:dl=\E[M:dn=\E[B:ei=:ho=\E[H:ic=\E[@:im=:li#24:\ :nd=\E[C:ms:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\ :kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:\ # capability to display graphic boxes using the PC ansi character set \ :gs=:ge=:gb=\332\300\277\331\304\263:\ # function keys F1 (k0) to F10 (k9) \ :k0=\E[M:k1=\E[N:k2=\E[O:k3=\E[P:k4=\E[Q:\ :k5=\E[R:k6=\E[S:k7=\E[T:k8=\E[U:k9=\E[V:\ # informix 4gl color support - the next line is one very long line \ :ZA=\E[%?%p1%{0}%=%t0m\E[37%e%p1%{1}%=%t33%e%p1%{2}%=%t35%e%p1%{3}%=%t31%e%p1%{4}%=%t36%e%p1%{5}%=%t32%e%p1%{6}%=%t34%e%p1%{7}%=%t30%;m\E[40m%?%p2%t\E[7m%;%?%p3%t\E[5m%;%?%p4%t\E[4m%;: ############################################################################# # Lester Knutsen lester@access.digex.net # # Advanced DataTools Corporation Voice: 703-256-0267 # # Providing Informix Database Tools and Consulting # ############################################################################# ------------------------------------------------------------------------------ From: estabroo@sea07s.navsea.navy.mil (Peter Estabrook) Date: 25 Aug 1993 09:18:04 -0400 Here is a termcap I came up with for my SEQUENT. The gs is probably unique to me but the ZA option is ANSI color and will work for you. Obviously I'm using xterm and I still have a problem when using the dual window debug. It doesn't seem to respect the two as seperate windows. I'll get to this when I get a little more time. If you have any questions fell free to ask. ------------------------------------ cut here --------------------------------- # # Xterm definition taken from terminfo # # - 07/21/1993 -- Peter Estabrook # xt|xterm|xterm terminal emulator (X window system):\ :ms:bs:bw:xn:\ :co#80:li#65:\ :sg#0:lm#=65:\ :cl=50\E[;H\E[2J:db:da:\ :cm=\E[%i%d;%dH:up=2\E[A:\ :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\Em:\ :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:\ :ks=\E[71h\E=\E(B\E)0\E[?7l:ke=\E[?7h\E[?1l\E>:\ :cs=\E[%1%d;%dr:sf=\ED:sr=\EM:\ :al=\E[L:dl=\E[M:\:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=2\E[C:pt:\ :im=\E[4h:ei=\E[4l:mi:\ :kb=^H:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[H:\ :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~: \ :k4=\E[15~:k5=\E[17~:k6=\E[18~:k7=\E[19~: \ :k8=\E[20~:k9=\E[21~:kA=\E[23~:kB=\E[24~: \ :gs=\E(0:ge=\E(B:gb=lmkjqx: \ :ZA=\E[%?%p1%{0}%=%t0m\E[30%e%p1%{1}%=%t1m\E[33%e%p1%{2}%=%t35%e%p1%{3}%=%t31%e%p1%{4}%=%t36%e%p1%{5}%=%t32%e%p1%{6}%=%t34%e%p1%{7}%=%t30%;m%?%p2%t\E[7m%;%?%p3%t\E[6m%;%?%p4%t\E[4m%;: # ---------------------------------- cut here ----------------------------------- -- Regards, Peter .-------------------------. | Peter Estabrook |___________________________________________ | User Technology Assoc. | Host : SEQUENT S2000/200 Dynix/ptx 1.4 / | 2121 Crystal Drive #103 | Fax : (703) 486-7179 / | Arlington, VA 22202 USA | Voice: (703) 486-7190 ( (-------------------------| Mail : estabroo@sea07s.navsea.navy.mil \ (__________________________________________\ ------------------------------------------------------------------------------ From: Con Woodall Date: Mon, 20 Nov 1995 14:54:26 -0700 (MST) Our changes were in the xterm parameters which are at the end of the file. We made changes in three areas. Enabled the arrow keys (the non-keypad ones): OLD :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\ NEW :ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:\ Enabled Page Up and Page Down: ADDED :kf=\E[6~:kg=\E[5~:\ Caused the xterm window to open without the "EnableApplicationKeyPad" option: OLD :ks=\E[?1h\E=:ke=\E[?1l\E>:\ NEW :ke=\E[?1l\E>:\ I don't know the original source of this beast. It might well have come from your archive. I believe we probably have some modification in the vt100 area from some time ago. vs|xterm|vs100|xterm terminal emulator (X window system):\ :cr=^M:do=^J:nl=^J:bl=^G:le=^H:ho=\E[H:\ :co#80:li#65:cl=\E[H\E[2J:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\ :md=\E[1m:mr=\E[7m:me=\E[m:\ :ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:\ :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~:k4=\E[15~:\ :k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:k9=\E[21~:\ :kf=\E[6~:kg=\E[5~:\ :kY=\E[216z:kZ=\E[222z:\ :ta=^I:pt:sf=\n:sr=\EM:\ :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:\ :MT:ke=\E[?1l\E>:\ :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:\ :rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:xn:\ :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\ :ti=\E7\E[?47h\E(B\E)0:te=\E[2J\E[?47l\E8:\ :hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:\ :gs=^n:ge=^o:gb=lmkjqx: -- Con Woodall Colorado St. U.; Veterinary Teach. Hosp.; cwoodall@vth1.vth.colostate.edu ==============================================================================