termcap str + params -> control seq. How?

Jim Balter jim at segue.segue.com
Sun Apr 7 09:43:03 AEST 1991


In article <12738 at hydra.Helsinki.FI> kankkune at cs.Helsinki.FI (Risto Kankkunen) writes:
>Peter da Silva suggested using tgoto. I was a bit hesitated to use that
>as the (SunOS) manual page implies it might contain much special case
>handling for cursor addressing:

The SysV terminfo tparm() does the same special case handling.  The special
case handling is to deal with UNIX terminal driver peculiarities.
SysV terminfo provides a tgoto() for compatibility with termcap.
tgoto(cap, p1, p2) is exactly equivalent to tparm(cap, p2, p1) (note reversal
of arguments).



More information about the Comp.unix.programmer mailing list