Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

@.


terminal-independent operatioO
n
s
v
ervi
t
er
w
minal-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: tgetent() Read the appropriate termcap entry. tgetflag() Check if a given Boolean capability is present in the terminal's entry. tgetnum() Return the value of a numeric termcap feature. tgetstr() Read and decode a termcap string feature. tgoto() Read and decode a termcap cursor-addressing string. tputs() Read and decode the leading padding information of a termcap 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 (<crtl-@>) is not ap- propriate. ***** Files ***** /etc/termcap -- Terminal capabilities data base /usr/lib/libterm.a -- Function library ***** See Also ***** libraries, stty, termcap, tgetent(), tgetflag(), tgetnum(), tgetstr(), tgoto(), tputs() COHERENT Lexicon Page 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026