Re: Anyone have a termcap entry for [ai]xterm?
Posted in 1993
In article <1993May27.171933.1850@ra.oc.com> jmaddox@mistxt.oc.com
(John Maddox) writes:
>does anyone have a decent termcap entry for xterm?
This is the file "xterm" from the ftp archives on mathcs.emory.edu, in the
directory /pub/informix/pub/termcaps. The directory also contains files
with other termcaps submitted by various users. Send me a copy of anything
you come up with if it's different from these.
Good luck,
Walt.
xterm termcap entries for using Informix under the X windowing system
Last Changed: February 9, 1993
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"
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 #(Lo