sseettuupptteerrmm() -- terminfo Function

Initialize a terminal
#iinncclluuddee <ccuurrsseess.hh>
sseettuupptteerrmm(_t_e_r_m,_f_d,_e_r_r_r_e_t)
cchhaarr *_t_e_r_m;
iinntt _f_d, *_e_r_r_r_e_t;

COHERENT  comes  with  a  set  of  functions  that  let  you  use  tteerrmmiinnffoo
descriptions  to manipulate a  terminal.  sseettuupptteerrmm()  initializes terminal
capabilities for terminal  type _t_e_r_m, which is accessed via file-descriptor
_f_d.  It  inhales all capabilities  at once, and performs  all other system-
dependent initialization -- which is one reason why tteerrmmiinnffoo is much faster
than tteerrmmccaapp.

If  _t_e_r_m is  initialized  to NULL,  sseettuupptteerrmm()  uses the  contents of  the
environmental variable TTEERRMM as a default.

_e_r_r_r_e_t points  to an integer  into which sseettuupptteerrmm()  writes the terminal's
status: zero if there is no such terminal type, one if all went well, or -1
if something has gone wrong.  If _e_r_r_e_t is NULL, sseettuupptteerrmm() prints an error
message and exits if the terminal cannot be found.

_S_e_e _A_l_s_o
tteerrmmiinnffoo
