problems with tic

From: Jorgen Pehrson <jp_at_spektr.eu.org>
Date: Thu, 29 Apr 1999 13:40:51 +0200 (CEST)

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_at_:dc=\E[P:dl=\E[M:dm=:\:ds_at_:ed=:ei=\E[4l:fs_at_:
ho=\E[H:i1_at_:i2_at_:ic_at_:if_at_:\: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_at_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)
Received on Thu Apr 29 1999 - 11:43:22 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT