[comp.unix.wizards] termcap strings that take arguments

mackenzi@stolaf.UUCP (David MacKenzie) (11/27/88)

The 4.3BSD termcap(5) man page notes that a couple of dozen termcap strings
can take numeric arguments, such as the ones that insert or delete multiple
lines or characters.  How are these parameters passed?  I know that with
the cm capability you call tgoto with the x and y coordinates, but how is
it done for capabilities that only take one numeric parameter?

David MacKenzie
edf@rocky2.rockefeller.edu (usually)

guy@auspex.UUCP (Guy Harris) (11/30/88)

>I know that with the cm capability you call tgoto with the x and y
>coordinates, but how is it done for capabilities that only take one
>numeric parameter?

Use "tgoto", pass the parameter as the third argument, pass whatever you
want (as long as it's integral) as the second argument.

Note that "vi" appears to be under the impression that AL, for example
("parameterized insert lines") may want to be given a second parameter,
namely the line at which insertion is to begin; it passes that parameter
as the second argument to "tgoto".