Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uunet!nuchat!buster!rli From: rli@buster.stafford.tx.us (Buster Irby) Newsgroups: comp.unix.programmer Subject: Re: termcap str + params -> control seq. How? Message-ID: <1991Apr02.223345.15465@buster.stafford.tx.us> Date: 2 Apr 91 22:33:45 GMT References: <12587@hydra.Helsinki.FI> Reply-To: rli@buster.stafford.tx.us Organization: Buster irby Lines: 19 peter@ficc.ferranti.com (Peter da Silva) writes: >In article <12587@hydra.Helsinki.FI> kankkune@cs.Helsinki.FI (Risto Kankkunen) writes: >> What is the standard way to apply parameters to the termcap strings you >> have read with tgetent? >tgoto. >> Something like tgoto, but not tied to cm capability. >tgoto isn't particularly tied to cm, that I recall, unless the terminal >expects certain control characters that UNIX maps or eats (^J, ^D). WRONG ANSWER: tparm( str, p1, p2, p3, ...) is the proper way to instantiate strings with parameters. Also, tputs() is the method used to output non cursor positioning strings after instantiation. tgoto() is a special case and is only used for cursor positioning, which means that it is *very* tied to cm. This is all defined in the manual under curses(3x).