Re: Help Needed with SCO termcap for Informix 4gl colour applications
Posted in 1996
Matthew Ward wrote: > > I'm trying to write an application in INFORMIX 4gl under SCO UNIX > using colour, The TERM variable is set to ansi, and I'm using the > INFORMIX termcap file. All the colours work fine (after little fine > tuning!!), however the se (standout end), ge (graphic end) and ue > (underscore end) attributes are all the same, so when Informix thinks > it needs to change colour, all the graphics will be switched off as > well!!. This is making the application none to successful. What I > need is to be able to change the default terminal sequences of these > attributes to something different. Make sure both TERM and TERMCAP are exported. I've had a lot of 'fun' writing a termcap entry for colour ansi terminals. Although the dictionary seems to have a whole NEW meaning for 'fun'! Anyway, heres my termcap entry for SCO colour ansi: 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:\\ :kn=12: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:k0=\\E[W:kA=\\E[X:\\ :kb=^h:ku=\\E[A:kd=\\E[B:kl=\\E[D:kr=\\E[C:eo:\\ :gs=\\E[12m:ge=\\E[10m:GV=\\63:GH=D:\\ :gb=Z@?YD3:\\ :G1=?:G2=Z:G3=@:G4=Y:\\ :GU=A:GD=B:GC=E:GL=C:GR=\\64:RT=^J:\\ :ZA=\\E[1;%?%p1%{0}%=%t37%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;0%;m\\E[40m%?%p2%t\\E[0; 7m%e\\E[27m%;%?%p3%t\\E[5m%;%?%p4%t\\E[4m%;: Cheers, -- Mark. +-------------------------------------------------------------------------+ |Mark D. Stock - The West Solutions Group http://www.west.co.za | | | |mailto:marks@west.co.za +------------------------------------------------+ |Tel: +27 11 803 2151 |If it doesn't work... force it! | |Fax: +27 11 803 2189 |If it breaks... it needed replacing anyway! | |Cell: +27 83 250 2325 |Well, that's how I code anyway! | +------------------------+------------------------------------------------+