From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079040316015.tru64-unix-managers.marc@archive.invalid> From: Jorgen Pehrson Date: Thu, 29 Apr 1999 11:40:51 +0000 To: tru64-unix-managers Subject: problems with tic X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079040316015 Hi Managers, I've got a problem with tic under Digital UNIX 4.0D. What I basically want todo is this: Our users log in to the system and are presented with a menu where they can select which version of the ASCII based ERP system they want to run. Since they five minutes later have forgotten which version they started we would like to have the two ERP versions use different foreground colors. Since the ERP application uses ANSI graphics (to make text bold, inverse or whatever) we can't simply do a /usr/bin/echo "\033[31m" in their .profile since the application will reset it to black/white. I've tried to make two terminfo entries, one for ERP version 1 and one for version 2. After the user have made their selection in the menu we would then set the TERM variable to the proper value, perhaps make a "reset" or something to reset the terminal to use the new termconfig. I ran a: $ infocmp -C > /tmp/foo Then I added "AF=\E[31m:Sf=\E[31m" to the file and did a: $ export TERMINFO=/tmp $ tic /tmp/foo This command returns this on standard error: Command 'mkdir /tmp/\E[3g:cv@:dc=\E[P:dl=\E[M:dm=:\:ds@:ed=:ei=\E[4l:fs@: ho=\E[H:i1@:i2@:ic@:if@:\:im=\E[4h:is=...[and so on]..:rf=/usr/share/lib/ tabset/v' failed Now on every other platform I've tested this on tic has compiled the terminfo file as expected but not on Digital UNIX. How is tic supposed to work in Digital UNIX? It looks like maybe the infocmp -C outputs the wrong format for tic or something? (PS. Any hints on how to change the foreground color using the correct termcap entries is appreciated as well...) Thanks! -- Jorgen Pehrson (HP 9000/380, VAX2000, DECstation 5000/200 (NetBSD 1.3)) jp@spektr.eu.org (PDP11/73, PDP11/83, PDP11/83 (2.11BSD)), Intergraph 200 spektr.eu.org/~jp/ MicroVAX 3100 (NetBSD 1.3), VAXstation 4000/90 (VAX/VMS)