Re: Color settings for 4GL/Redhat Linux 6.0
Posted in 1999
Christian Hamel wrote: > > Hi. > I've just installed the evaluation version of informix 4GL, SE and ISQL. > I would like to test informix a little bit before we plan migrate our > application on it. I would like to see some color on my form. I've tried > to set my TERMCAP variable to $INFORMIXDIR/etc/termcap and my TERM to vt100, > vt52, vt102 but the only thing I see as a difference is BOLD... I run my > form locally on the server and via another PC connected to WRQ/Reflection > without any success. Any help would be greatly appreciated. Tanx. The thing that still seems to confuse people is that DEC terminals didn't support colour until about vt320 or something. So if you are using a real DEC terminal or an accurate emulator, then vt52, vt100, vt102 and vt220 won't support colour. Some emulators allow you to add colour to a monochrome terminal type, but that is usually a lot of work. What ever method you use, you are going to need a ZA entry in your termcap file. The ZA variable is documented somewhere in the Informix manuals. The easiest emulation for colour is usually ansi. Here is a termcap entry you might try: ------------------------------------------------------------------------ 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%;: ------------------------------------------------------------------------ I haven't tried this on Linux, but it used to work well on SCO. Hope that helps, -- Mark. +----------------------------------------------------------+-----------+ |Mark D. Stock - Informix SA http://www.informix.com |//////// /| |mailto:mdstock@informix.com http://www.informix.com/idn |///// / //| |http://www.iiug.org +-----------------------------------+//// / ///| | Tel: +27 11 807 0313 |What year 2000 bug? year 2000 bug? |/// / ////| | Fax: +27 838250 2325 |year 2000 bug? year 2000 bug? year |// / /////| |Cell: +27 83 250 2325 |2000 bug? year 2000 bug? year 1900 |/ ////////| +----------------------+-----------------------------------+-----------+