termcap str + params -> control seq. How?

Buster Irby rli at buster.stafford.tx.us
Wed Apr 3 08:33:45 AEST 1991


peter at ficc.ferranti.com (Peter da Silva) writes:

>In article <12587 at hydra.Helsinki.FI> kankkune at 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).



More information about the Comp.unix.programmer mailing list