ttttyyssttaatt -- Command

Get terminal status
/eettcc/ttttyyssttaatt [ -dd ] _p_o_r_t

ttttyyssttaatt checks  the status of the specified  asynchronous _p_o_r_t in directory
/ddeevv. It normally just returns an  exit status that indicates the status of
the _p_o_r_t.  The option -dd tells  ttttyyssttaatt to print the status  of the _p_o_r_t on
the standard output.

_E_x_a_m_p_l_e
The following example prints the status of port /ddeevv/ccoomm22rr:

    /etc/ttystat -d com2

If /ddeevv/ccoomm22rr is enabled, ttttyyssttaatt prints:

    com2r is enabled

ttttyyssttaatt finds the port status from the /eettcc/ttttyyss file.

_F_i_l_e_s
/eettcc/ttttyyss -- Terminal characteristics file

_S_e_e _A_l_s_o
ccoommmmaannddss, ddiissaabbllee, eennaabbllee, ttttyyss

_D_i_a_g_n_o_s_t_i_c_s
ttttyyssttaatt  returns  one if  the  _p_o_r_t is  enabled  and zero  if  the _p_o_r_t  is
disabled.  It returns -2 if an error occurs.
