termcap test routine???

Doug Gwyn gwyn at brl-vgr.ARPA
Sat May 12 15:15:02 AEST 1984


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:



More information about the Comp.unix.wizards mailing list