Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!randvax!segue!jim From: jim@segue.segue.com (Jim Balter) Newsgroups: comp.unix.programmer Subject: Re: termcap str + params -> control seq. How? Message-ID: <7022@segue.segue.com> Date: 6 Apr 91 23:43:03 GMT References: <1991Apr02.223345.15465@buster.stafford.tx.us> <12738@hydra.Helsinki.FI> Reply-To: jim@segue.segue.com (Jim Balter) Organization: Segue Software, Inc. - Santa Monica, CA. +1-213-453-2161 Lines: 10 In article <12738@hydra.Helsinki.FI> kankkune@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).