Fixes to vnews terminal handler

Mark Horton mark at cbosgd.UUCP
Mon Sep 26 18:02:43 AEST 1983


The vt100 cs string should NOT have a %r in it.  The two arguments to
tgoto have always been backwards from what you would expect.  This
is especially noticable when you only pass one parameter (e.g. to
one of the parameterized local motion capabilities) since you must
call tgoto(UP, 0, nlines) instead of the expected tgoto(UP, nlines).
This also makes it impossible to have more than 2 parameters passed
through tgoto - the code just alternates between the two parms passed.

This was fixed in terminfo by replacing tgoto with tparm, which
accepts up to 9 parameters:
	tparm(parm_up_cursor, nlines)

	Mark Horton



More information about the Comp.unix.wizards mailing list