SCO Unix Termcap (summary)
Posted in 1994
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL, Internationalization & Character Sets
The following is a summary of all the answers I received to the SCO Unix termcap enquiry. Messages separated by <######################################> The fileserver here at Newcastle went down for several days which has caused the delay in posting this, also some mail was lost so some mail messages may be missing. Many thanks to everyone who sent me email. I have used the termcap suggested by Lester Knutsen and everything is working ok now with nice boxes. In article <CKHxDM.DEI@newcastle.ac.uk> you write: } } } I have just started using Informix 4.01 RDS on SCO Unix on a } 486 PC. } } The problem I have is that the window boxes are made up of } characters instead of lines which leads me to think I need a } termcap for VGA running on SCO. } } Can anyone point me to a ftp site or email me a suitable termcap ? } } If this is n't the problem how do I solve it ? } } Many thanks in advance Steve.... } This is the one I use... Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip ansi|Ansi with informix stuff for color:\\ :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:do=\\E[B:bt=\\E[Z:ei=:ho=\\E[H:ic=\\E[@:im=:li#25:\\ :nd=\\E[C: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:sf=\\E[S:sr=\\E[T:\\ :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:k10=\\E[W:k11=\\E[X\\ :CW=\\E[M:NU=\\E[N:RF=\\E[O:RC=\\E[P:\\ :WL=\\E[S:WR=\\E[T:CL=\\E[U:CR=\\E[V:\\ :HM=\\E[H:EN=\\E[F:PU=\\E[I:PD=\\E[G:\\ :ti=\\E[7;7;8m\\EQ0`\\E[M`\\EQ1`\\E[N`\\EQ2`\\E[O`\\EQ3`\\E[P`\\EQ4`\\E[Q`\\EQ5`\\E[R`:\\ :te=\\E[2;15;0m\\E[7;0;15m:\\ # :gs=:ge=:gb=\\311\\310\\273\\274\\315\\272: \\ :ZA=\\E[2;%?%p1%{0}%=%t0%e%p1%{1}%=%t14%e%p1%{2}%=%t13%e%p1%{3}%=%t12%e%p1%{4}%=%t11%e%p1%{5}%=%t10%e%p1%{6}%=%t9%e%p1%{7}%=%t15;0m\\E[%;;15m%?%p2%t\\E[2;0;11m%;%?%p3%t\\E[5m%;%?%p4%t\\E[4m%;: :gs=\\E[12m:ge=\\E[10m:gb=IH;<M\\072:\\ :GS=\\E[12m:GE=\\E[10m:GV=\\E[12m3:GH=D:\\ :GC=E:GL=\\E[12m4:GR=C:RT=^J:G1=?:G2=Z:G3=@:G4=Y:GU=A:GD=B:\\ Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip DAS -- David Snyder @ Snide Computer Services - Folcroft, PA Current Release is db4glgen-3.17 UUCP: ..!uunet!das13!dave INTERNET: dave@das13.snide.com <##########################################################################> The information you need is smewhere in one of the appedices of the manuals. Appendix N methinks. However, I am using exactly the same configuration as you so here is the termcap entry I use. Add it to your ansi termcap entry. It also contains the keyboard codes for the page up and page down keys. :gs=\\E[12m:ge=\\E[10m:gb=Z@?YD\\63:\\ :kg=\\E[I:kf=\\E[G: Hope this helps. -- +-----------------------------------+---------------------------------+ | Malcolm McLean | mmclean@ipaedin.demon.co.uk | | Image Partnering Associates Ltd | 100025,1543@compuserve.com | | 4 Dalgety Avenue | |\\___/| | | Edinburgh | (_O O_) | | EH7 5UE Voice 031-661 9180 | /(V)\\ | +-----------------------------------+---------------------------------+ <############################################################################> scoansi|Ansi standard crt with 36 functional keys: TERM=scoansi TERMCAP=$INFORMIXDIR/etc/termcap cheers j. _____________________________________________________________________________ Jack Parker | Hewlett Packard, BSMC Boise, Idaho, USA| So many windows, jparker@hpbs2561.boi.hp.com | so little time. (208) 396-5388 (W) (208) 384-1623 (H) | _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________ <****************************************************************************> Here is the one I use on an SCO ODT system. Regards - Lester############################################################################# # Lester Knutsen lester@access.digex.net # # Advanced DataTools Corporation Voice: 703-256-0267 # # Control you Informix database security with DB Privileges # ############################################################################# ############################################################################# # Module: @(#)ansitermcap 1.1 Date: 93/05/11 ############################################################################# #let version = "@(#)ansitermcap 1.1" li|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#25:\\ :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:\\ :gs=:ge=:gb=\\332\\300\\277\\331\\304\\263:\\ :gs=:ge=:gb=\\311\\310\\273\\274\\315\\272:\\ :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:\\ :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%;: <##############################################################################> Have you looked at your TERMCAP variabale? If its pointing to /etc/termcap, maybe you can try changing it to $INFORMIXDIR/etc/termcap and see if that solves your problem. Bob <##############################################################################> 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}%=%t 30%;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