|
|
1.1 ! root 1: @. ! 2: ! 3: ! 4: terminal-independent operationsOverviewterminal-independent operations ! 5: ! 6: ! 7: ! 8: ! 9: The COHERENT system includes a set of functions, found in the ! 10: library /usr/lib/libterm.a, that extract and use the descriptions ! 11: stored in the file /etc/termcap. These functions return informa- ! 12: tion about how a given terminal functions; thus, they allow a ! 13: program to address any number of different terminals correctly, ! 14: without having to change source code or recompile. ! 15: ! 16: The following functions perform terminal-independent operations: ! 17: ! 18: ttggeetteenntt() Read the appropriate termcap entry. ! 19: ! 20: ttggeettffllaagg() ! 21: Check if a given Boolean capability is present in the ! 22: terminal's entry. ! 23: ! 24: ttggeettnnuumm() Return the value of a numeric tteerrmmccaapp feature. ! 25: ! 26: ttggeettssttrr() Read and decode a tteerrmmccaapp ssttrriinngg ffeeaattuurree. ! 27: ! 28: ttggoottoo() Read and decode a tteerrmmccaapp cursor-addressing string. ! 29: ! 30: ttppuuttss() Read and decode the leading padding information of a ! 31: tteerrmmccaapp string feature. ! 32: ! 33: See the Lexicon entry for each function for more details on its ! 34: operation. ! 35: ! 36: The external variable ospeed is the output speed to the terminal ! 37: as encoded by stty. The external variable PC is a padding ! 38: character from the pc capability if a null (<ccrrttll-@>) is not ap- ! 39: propriate. ! 40: ! 41: ***** Files ***** ! 42: ! 43: /eettcc/tteerrmmccaapp -- Terminal capabilities data base ! 44: /uussrr/lliibb/lliibbtteerrmm.aa -- Function library ! 45: ! 46: ***** See Also ***** ! 47: ! 48: libraries, stty, termcap, tgetent(), tgetflag(), tgetnum(), ! 49: tgetstr(), tgoto(), tputs() ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.