[comp.os.minix] termcap bug+problem

eyal@cancol.oz (Eyal Lebedinski) (03/18/90)

I just started using a Vectrix terminal on tty1 and hit some termcap problems.
First, in lib/termcap.c, function tgetstr(), the interpretation of '^x' is
wrong. The line after case '^' should have '1' added as in:
	*wsp = *++cp - 'A' + 1;
The original interpreted '^A' as '0' but should be '1' etc.

A problem with the '+' pattern in tgoto() is that it outputs the col first while
the '%' option outputs the row first. I needed the row first. Was this supposed
to work like this? BTW, is there a mechanizm in termcap to choose the desired
sequence dynamicaly?

Eyal