[comp.emacs] Termcap for the HP 2623A

drw@cullvax.UUCP (Dale Worley) (12/29/86)

I'm still having trouble with the HP 2623A.  I got a nice termcap from
gwyn@brl-smoke, which worked rather well, except that I modified it to
keep the function key labels from showing.  I also had to add "sg#0",
for, as it says in /etc/TERMS in the emacs distribution, "Watch out on
HP terminals for problems with standout disappearing on part of the
mode line.  These problems are due to the absence of :sg#0: which some
HP terminals need."

This got everything working fine, except that sometimes when I split
the screen into two windows, the new mode line isn't in standout at
all!  It appears that this only happens when the line of the screen
that the new mode line is going to was beyond the end of the file that
was displayed before.  To reproduce:

Use the following termcap for hp2623a:

hd|hp2623a|HP 2623A:\
	:DO=\E&a+%dR:LE=\E&a-%dC:RI=\E&a+%dC:UP=\E&a-%dR:ae=^O:al=\EL:\
	:am:as=^N:bl=^G:bs:bt=\Ei:cd=\EJ:ce=\EK:ch=\E&a%dC:cl=\EH\EJ:\
	:cm=\E&a%dy%dC:co#80:cr=^M:ct=\E3:cv=\E&a%dY:da:db:dc=\EP:dl=\EM:\
	:do=^J:ei=\ER:ho=\E&a0c0Y:im=\EQ:is=\E&k0o\E&j@\E)B:k0=\Ep\r:k1=\Eq\r:\
	:k2=\Er\r:k3=\Es\r:k4=\Et\r:k5=\Eu\r:k6=\Ev\r:k7=\Ew\r:kb=^H:kd=\EB:\
	:ke=\E&s0A:kh=\Eh:kl=\ED:kn#8:kr=\EC:ks=\E&s1A:ku=\EA:l0=f1:l1=f2:\
	:l2=f3:l3=f4:l4=f5:l5=f6:l6=f7:l7=f8:le=^H:li#24:mb=\E&dA:me=\E&d@:\
	:mh=\E&dH:mi:mr=\E&dB:nd=\EC:pt:se=\E&d@:sf=^J:sg#0:so=\E&dJ:st=\E1:\
	:ta=^I:ue=\E&d@:up=\EA:us=\E&dD:vt#6:xs:

Start up Emacs as normally.  Then type C-x 2.  The inserted mode line
for the upper window won't be in standout.  If you remove the
"sg#0" from the termcap, the new mode will be in standout, but 
standout will disappear on various parts of the mode line.

I believe that this may be due to a bug in Emacs.  I've checked the
termscript generated by this example, and Emacs indeed doesn't emit
the :so: sequence before writing the new mode line.  (This happens
under both 17.49 and 17.64.)  Does anybody out there know enough about
the Emacs redisplay code to check this out?

Dale
-- 
Dale Worley		Cullinet Software
UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw
ARPA: cullvax!drw@eddie.mit.edu