|
|
coherent
tgetent() Terminal-Independent Operation tgetent() Read termcap entry iinntt ttggeetteenntt(_b_p, _n_a_m_e) cchhaarr *_b_p, *_n_a_m_e; tgetent is one of a set of functions that help COHERENT to per- form terminal-independent operations. It extracts the entry from file /etc/termcap for the terminal name and writes it into a buffer at address bp. bp should be a character buffer of 1,024 bytes and must be retained through all subsequent calls to the other functions. It returns -1 if it cannot open /etc/termcap, zero if the terminal name given does not have an entry, and one upon a successful search. tgetent first looks in the environment to see if the termcap variable had already been set. If it finds that the variable termcap has been set, that the value does _n_o_t begin with a slash, and that the terminal type name in the tteerrmmccaapp variable is the same as that in the environment variable TERM, then ttggeetteenntt uses the termcap string instead of reading the file /etc/termcap. However, if the termcap string does begin with a slash, then it is used as the pathname of a terminal capabilities file other than /etc/termcap. This can speed entry into programs that call tgetent, and can be used to help debug new terminal descriptions. ***** Files ***** /eettcc/tteerrmmccaapp -- Terminal capabilities data base /uussrr/lliibb/lliibbtteerrmm.aa -- Function library ***** See Also ***** termcap, terminal-independent operation COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.