@.


terminal-independent operationsOverviewterminal-independent operations




The COHERENT  system includes  a set  of functions, found  in the
library /usr/lib/libterm.a, that extract and use the descriptions
stored in the file /etc/termcap.  These functions return informa-
tion about  how a  given terminal  functions; thus, they  allow a
program to  address any number of  different terminals correctly,
without having to change source code or recompile.

The following functions perform terminal-independent operations:

ttggeetteenntt() Read the appropriate termcap entry.

ttggeettffllaagg()
          Check if  a given Boolean capability  is present in the
          terminal's entry.

ttggeettnnuumm() Return the value of a numeric tteerrmmccaapp feature.

ttggeettssttrr() Read and decode a tteerrmmccaapp ssttrriinngg ffeeaattuurree.

ttggoottoo()   Read and decode a tteerrmmccaapp cursor-addressing string.

ttppuuttss()   Read  and decode the  leading padding information  of a
          tteerrmmccaapp string feature.

See the  Lexicon entry for each function for  more details on its
operation.

The external variable ospeed  is the output speed to the terminal
as  encoded  by stty.   The  external variable  PC  is a  padding
character from the pc capability  if a null (<ccrrttll-@>) is not ap-
propriate.

***** Files *****

/eettcc/tteerrmmccaapp -- Terminal capabilities data base
/uussrr/lliibb/lliibbtteerrmm.aa -- Function library

***** See Also *****

libraries,  stty,   termcap,  tgetent(),  tgetflag(),  tgetnum(),
tgetstr(), tgoto(), tputs()














COHERENT Lexicon                                           Page 1


