[comp.unix.xenix] --- Microport System V/AT - terminfo problem

fortin@zap.UUCP (Denis Fortin) (02/26/88)

Greetings...

	If you are running release 2.3 of Microport's System V/AT, you've
most probably noticed that there are some *very* annoying terminfo problems
with the console.  Somehow, when using programs that use curses a lot, your
display is often off by a column or so.

	There is a simple workaround for this:

 	First of all, you should make sure that your terminal is always in
"stty tabs" mode.  The tab expansion in "stty -tabs" is broken as it
appears to count escape sequences as printable characters sometimes!!!

	Then, you should fix the terminfo entry for the `ansi' console:
do a "untic ansi >zap.tmp" to obtain the terminfo entry for the console
in file zap.tmp.  Then, edit the file to add a `%i' in the entry for
`cup' (it should read "cup=\E[%i%p1%d;%p2%dH") and delete the entries
for `hpa' and `vpa' (hpa appears to be the culprit).  Your terminfo
entry should now look like this:

ansi|ansi-24|ansi-s-bot|ansi-bot-s|ansi with bottom status line (for sysline),
	am, hs, mir, msgr, eslok, xon, cols#80, lines#24, wsl#80, 
	cbt=\E[Z, bel=^G, cr=\r, csr=\E[%i%p1%d;%p2%dr, 
	clear=\E[H\E[J\E[3;2m, el=\E[K, ed=\E[J, cup=\E[%i%p1%d;%p2%dH, 
	cud1=\n, home=\E[H, civis=\E[25;27m, cub1=\b, cnorm=\E[23;27m, 
	cuf1=\E[C, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
	dsl=\E7\E[?6l\E[25;1H\E[K\E8, smacs=\E[12m, blink=\E[5;3;1m, 
	bold=\E[1m, smir=\E[4h, invis=\E[8m, rev=\E[7m, smso=\E[7m, 
	smul=\E[4m, ech=\E[%p1%dX, rmacs=\E[10m, sgr0=\E[m, rmir=\E[4l, 
	rmso=\E[m, rmul=\E[m, fsl=\E8, is1=\E[=h, 
	is2=\E7\E[1;24r\E8\E[?6h\E[A\n, il1=\E[L, kbs=\b, kdch1=\E[P, 
	kdl1=\E[M, kcud1=\E[B, kf1=\EOP, kf10=\EOY, kf2=\EOQ, kf3=\EOR, 
	kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, 
	khome=\E[H, kich1=\E[@, kil1=\E[L, kcub1=\E[D, knp=\E[V, 
	kpp=\E[U, kcuf1=\E[C, kcuu1=\E[A, dch=\E[%p1%dP, dl=\E[%p1%dM, 
	cud=\E[%p1%dB, ich=\E[%p1%d@, indn=\E[%p1%dS, il=\E[%p1%dL, 
	cub=\E[%p1%dD, cuf=\E[%p1%dC, rin=\E[%p1%dT, cuu=\E[%p1%dA, 
	pfkey=\E[%p1%d;%p2%l%dq%p2%s, pfx=\E[%p1%d;%p2%l%dq%p2%s, 
	rc=\E8, sc=\E7, ind=\ED, ri=\EM, ht=\t, 
	tsl=\E7\E[?6l\E[25;%p1%dH\E[7;1;55m\E[K, 

You then restore the entry to the terminfo database by doing a `tic zap.tmp'.

	After that, things should be OK.  (Don't forget to put `stty tabs'
in you .login or .profile!)

	NOTE: this seems to have worked OK for me.  I'm not sure whether
the change will fix all of the problems, but so far I've been quite
happy with it.  (As always, if you're not sure about doing this, it would
probably be better not to do it!)
	

PS. I'm sorry to post this to comp.unix.xenix, but it is still not possible
    to post to comp.unix.microport (moderation problems).
-- 
Denis Fortin                            | fortin@zap.UUCP
CAE Electronics Ltd                     | philabs!micomvax!zap!fortin
The opinions expressed above are my own | fortin%zap.uucp@uunet.uu.net