Annotation of coherent/a/usr/man/COHERENT/tgetent, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: tgetent()         Terminal-Independent Operation        tgetent()
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Read termcap entry
                      9: 
                     10: iinntt ttggeetteenntt(_b_p, _n_a_m_e)
                     11: cchhaarr *_b_p, *_n_a_m_e;
                     12: 
                     13: tgetent is one  of a set of functions that  help COHERENT to per-
                     14: form terminal-independent operations.  It extracts the entry from
                     15: file  /etc/termcap for  the terminal  name and  writes it  into a
                     16: buffer at  address bp.  bp should be a  character buffer of 1,024
                     17: bytes and  must be retained  through all subsequent  calls to the
                     18: other functions.   It returns -1 if  it cannot open /etc/termcap,
                     19: zero if the  terminal name given does not have  an entry, and one
                     20: upon a successful search.
                     21: 
                     22: tgetent  first looks  in the  environment to  see if  the termcap
                     23: variable had  already been  set.  If  it finds that  the variable
                     24: termcap has been set, that the value does _n_o_t begin with a slash,
                     25: and that  the terminal type  name in the tteerrmmccaapp  variable is the
                     26: same as that in  the environment variable TERM, then ttggeetteenntt uses
                     27: the  termcap string  instead  of reading  the file  /etc/termcap.
                     28: However, if  the termcap string does begin with  a slash, then it
                     29: is used  as the  pathname of  a terminal capabilities  file other
                     30: than /etc/termcap.  This  can speed entry into programs that call
                     31: tgetent, and can be used to help debug new terminal descriptions.
                     32: 
                     33: ***** Files *****
                     34: 
                     35: /eettcc/tteerrmmccaapp -- Terminal capabilities data base
                     36: /uussrr/lliibb/lliibbtteerrmm.aa -- Function library
                     37: 
                     38: ***** See Also *****
                     39: 
                     40: termcap, terminal-independent operation
                     41: 
                     42: 
                     43: 
                     44: 
                     45: 
                     46: 
                     47: 
                     48: 
                     49: 
                     50: 
                     51: 
                     52: 
                     53: 
                     54: 
                     55: 
                     56: 
                     57: 
                     58: 
                     59: 
                     60: 
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.