[net.unix-wizards] termcap test routine???

sloane@noscvax.UUCP (05/02/84)

Does anyone out there have a program (C, please) that tests a new
termcap definition? Hopefully it would excercise as many termcap
attributes as possible, and allow one to evaluate whether they
work (by pausing and waiting for a <ret>, for instance) before
going on to the next test sequence. 

I am writing termcaps for various terminals, and testing by usage
is not so good - some terminal attributes may not be used very often.

If you have such a monster, or even just a pretty good test program,
please mail it to me, or maybe post it to net.sources???

Thanks...

      Gary K. Sloane
      c/o Naval Ocean Systems Center
      COTD Building 1 Room B205
      San Diego, California 92152

      MILNET: sloane@nosc
      UUCP:   ...{sdcsvax}!noscvax!sloane
      DDD: (619) 225-8401 x391

lmc@denelcor.UUCP (05/05/84)

Please post any termcap testers to net.sources; I (and no doubt others, to
read all of the "Does anyone have a termcap for ....?) would very much
like to have such a thing.
-- 
		Lyle McElhaney
		(hao,brl-bmd,nbires,csu-cs,scgvaxd)!denelcor!lmc

chris@umcp-cs.UUCP (05/07/84)

When did al and dl acquire numeric parameters (as AL and DL)??
With ``pc=<pc>'' you'll get lots of ``<''s for pad characters,
since pad characters are just one ``char''.  Of course, with
no padding you shouldn't see any anyway....

We should all switch over to terminfo anyway.  (Die termcap die!!
<ahem ... er, sorry>)  [Seriously, terminfo seems far superior to
termcap.]
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland

gwyn@brl-vgr.ARPA (Doug Gwyn ) (05/08/84)

I agree that terminfo is superior to termcap.  Too bad that 4.?BSD
doesn't have it.

AL & DL (with numeric parameter) have been supported by Horton for
years.  I believe that all current termcap-driven implementations
of "vi" support them.

Is pc= really constrained to one char?  Golly, I didn't know that.

Let's hear it for all those terminal designers!  :-<

chris@umcp-cs.UUCP (05/08/84)

For anyone who cares, 4.1BSD vi does not support ``AL'' and ``DL''
entries in termcaps.  (I just checked the source. Look at
/usr/src/cmd/ex/ex_tty.c and find the place where it sets namp to
a list of names to be tgetstr'ed.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland

gwyn@brl-vgr.ARPA (Doug Gwyn ) (05/12/84)

I find "vi" is a very good termcap tester.  Most other screen-oriented
programs I have encountered have not used termcap correctly in some
cases.

Here is a cute trick for people who are writing termcap-driven programs;
include the following dummy terminal type in /etc/termcap and set
TERM=debug to see what your program is actually doing:
#
# Debugging entry -- all printing characters
d0|debug|debugging entry:\
	:ae=<ae>:AL=<AL%d>:al=<al>:am:as=<as>:bc=<bc>:bt=<bt>:cd=<cd>:\
	:ce=<ce>:ch=<ch%d>:cl=<cl>:cm=<cm%d,%d>:co#80:cr=<cr>:cs=<cs%d,%d>:\
	:ct=<ct>:cv=<cv%d>:da:db:dc=<dc>:DL=<DL%d>:dl=<dl>:dm=<dm>:DO=<DO%d>:\
	:do=<do>:ed=<ed>:ei=<ei>:ff=<ff>:ho=<ho>:ic=<ic>:im=<im>:ip=<ip>:\
	:is=<is>:k0=\E0:k1=\E1:kb=\Eb:kd=\Ed:ke=<ke>:kh=\Eh:kl=\El:kn=2:\
	:ko=cl,ho,ll:kr=\Er:ks=<ks>:ku=\Eu:l0=ESC0:l1=ESC1:LE=<LE%d>:li#24:\
	:ll=<ll>:mb=<mb>:md=<md>:me=<me>:mi:ml=<ml>:mr=<mr>:ms=<ms>:mu=<mu>:\
	:nd=<nd>:nl=<nl>:pb#19200:pc=<pc>:pt:rc=<rc>:RI=<RI%d>:rs=<rs>:\
	:sc=<sc>:se=<se>:sf=<sf>:so=<so>:sr=<sr>:st=<st>:ta=<ta>:te=<te>:\
	:ti=<ti>:uc=<uc>:ue=<ue>:UP=<UP%d>:up=<up>:us=<us>:vb=<vb>:ve=<ve>:\
	:vs=<vs>:vt#3: