{"id":5994,"date":"2022-12-20T18:57:49","date_gmt":"2022-12-20T21:57:49","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/termios-h-man0p\/"},"modified":"2022-12-20T18:57:49","modified_gmt":"2022-12-20T21:57:49","slug":"termios-h-man0p","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/termios-h-man0p\/","title":{"rendered":"termios.h (man0p)"},"content":{"rendered":"<h1 align=\"center\">termios.h<\/h1>\n<p> <a href=\"#PROLOG\">PROLOG<\/a><br \/> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#APPLICATION USAGE\">APPLICATION USAGE<\/a><br \/> <a href=\"#RATIONALE\">RATIONALE<\/a><br \/> <a href=\"#FUTURE DIRECTIONS\">FUTURE DIRECTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>PROLOG <a name=\"PROLOG\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page is part of the POSIX Programmer\u2019s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">termios.h \u2014 define values for termios<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <termios.h><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><termios.h><\/i> header shall contain the definitions used by the terminal I\/O interfaces (see <i>Chapter 11<\/i>, <i>General Terminal Interface<\/i> for the structures and names defined).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>The termios Structure<\/b> <br \/> The <i><termios.h><\/i> header shall define the following data types through <b>typedef<\/b>:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p><b>cc_t<\/b><\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"57%\">\n<p>Used for terminal special characters.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p><b>speed_t<\/b><\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"57%\">\n<p>Used for terminal baud rates.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p><b>tcflag_t<\/b><\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"57%\">\n<p>Used for terminal modes.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The above types shall be all unsigned integer types.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The implementation shall support one or more programming environments in which the widths of <b>cc_t<\/b>, <b>speed_t<\/b>, and <b>tcflag_t<\/b> are no greater than the width of type <b>long<\/b>. The names of these programming environments can be obtained using the <i>confstr<\/i>() function or the <i>getconf<\/i> utility.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><termios.h><\/i> header shall define the <b>termios<\/b> structure, which shall include at least the following members:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">tcflag_t c_iflag Input modes. <br \/> tcflag_t c_oflag Output modes. <br \/> tcflag_t c_cflag Control modes. <br \/> tcflag_t c_lflag Local modes. <br \/> cc_t c_cc[NCCS] Control characters.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><termios.h><\/i> header shall define the following symbolic constant:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\">NCCS<\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">Size of the array <i>c_cc<\/i> for control characters.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><termios.h><\/i> header shall define the following symbolic constants for use as subscripts for the array <i>c_cc<\/i>:<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-735571.png\" alt=\"Image grohtml-735571.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The subscript values shall be suitable for use in <b>#if<\/b> preprocessing directives and shall be distinct, except that the VMIN and VTIME subscripts may have the same values as the VEOF and VEOL subscripts, respectively.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Input Modes<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use as flags in the <i>c_iflag<\/i> field. The <i>c_iflag<\/i> field describes the basic terminal input control.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">BRKINT<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p style=\"margin-top: 1em\">Signal interrupt on break.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ICRNL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Map CR to NL on input.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IGNBRK<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Ignore break condition.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IGNCR<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Ignore CR.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IGNPAR<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Ignore characters with parity errors.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>INLCR<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Map NL to CR on input.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>INPCK<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Enable input parity check.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ISTRIP<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Strip character.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IXANY<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Enable any character to restart output.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IXOFF<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Enable start\/stop input control.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IXON<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Enable start\/stop output control.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>PARMRK<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"60%\">\n<p>Mark parity errors.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Output Modes<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use as flags in the <i>c_oflag<\/i> field. The <i>c_oflag<\/i> field specifies the system treatment of output.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">OPOST<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p style=\"margin-top: 1em\">Post-process output.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ONLCR<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>Map NL to CR-NL on output.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>OCRNL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>Map CR to NL on output.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ONOCR<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>No CR output at column 0.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ONLRET<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>NL performs CR function.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>OFDEL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>Fill is DEL.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>OFILL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>Use fill characters for delay.<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>NLDLY<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"46%\">\n<p>Select newline delays:<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%;\">NL0<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">Newline type 0.<\/p>\n<\/td>\n<td width=\"35%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>NL1<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"23%\">\n<p>Newline type 1.<\/p>\n<\/td>\n<td width=\"35%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CRDLY<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"23%\"><\/td>\n<td width=\"35%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">Select carriage-return delays:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">CR0<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"44%\">\n<p style=\"margin-top: 1em\">Carriage-return delay type 0.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CR1<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"44%\">\n<p>Carriage-return delay type 1.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CR2<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"44%\">\n<p>Carriage-return delay type 2.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CR3<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"44%\">\n<p>Carriage-return delay type 3.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>TABDLY<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"44%\"><\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">Select horizontal-tab delays:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\">TAB0<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"43%\">\n<p style=\"margin-top: 1em\">Horizontal-tab delay type 0.<\/p>\n<\/td>\n<td width=\"15%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p>TAB1<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"43%\">\n<p>Horizontal-tab delay type 1.<\/p>\n<\/td>\n<td width=\"15%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p>TAB2<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"43%\">\n<p>Horizontal-tab delay type 2.<\/p>\n<\/td>\n<td width=\"15%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p>TAB3<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"43%\">\n<p>Expand tabs to spaces.<\/p>\n<\/td>\n<td width=\"15%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p>BSDLY<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"43%\"><\/td>\n<td width=\"15%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">Select backspace delays:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">BS0<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"35%\">\n<p style=\"margin-top: 1em\">Backspace-delay type 0.<\/p>\n<\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>BS1<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"35%\">\n<p>Backspace-delay type 1.<\/p>\n<\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>VTDLY<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"35%\"><\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">Select vertical-tab delays:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">VT0<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"40%\">\n<p style=\"margin-top: 1em\">Vertical-tab delay type 0.<\/p>\n<\/td>\n<td width=\"18%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>VT1<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"40%\">\n<p>Vertical-tab delay type 1.<\/p>\n<\/td>\n<td width=\"18%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>FFDLY<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"40%\"><\/td>\n<td width=\"18%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">Select form-feed delays:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"5%\">\n<p style=\"margin-top: 1em\">FF0<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"35%\">\n<p style=\"margin-top: 1em\">Form-feed delay type 0.<\/p>\n<\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"5%\">\n<p>FF1<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"35%\">\n<p>Form-feed delay type 1.<\/p>\n<\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Baud Rate Selection<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use as values of objects of type <b>speed_t<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The input and output baud rates are stored in the <b>termios<\/b> structure. These are the valid values for objects of type <b>speed_t<\/b>. Not all baud rates need be supported by the underlying hardware.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">B0<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p style=\"margin-top: 1em\">Hang up<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B50<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>50 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B75<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>75 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B110<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>110 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B134<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>134.5 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B150<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>150 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B200<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>200 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B300<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>300 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B600<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>600 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B1200<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>1200 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B1800<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>1800 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B2400<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>2400 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B4800<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>4800 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B9600<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>9600 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B19200<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>19200 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>B38400<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"16%\">\n<p>38400 baud<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Control Modes<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use as flags in the <i>c_cflag<\/i> field. The <i>c_cflag<\/i> field describes the hardware control of the terminal; not all values specified are required to be supported by the underlying hardware.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p style=\"margin-top: 1em\">CSIZE<\/p>\n<\/td>\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">Character size:<\/p>\n<\/td>\n<td width=\"48%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%;\">CS5<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">5 bits<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CS6<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"9%\">\n<p>6 bits<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CS7<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"9%\">\n<p>7 bits<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CS8<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"9%\">\n<p>8 bits<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p>CSTOPB<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"9%\"><\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">Send two stop bits, else one.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">CREAD<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"40%\">\n<p style=\"margin-top: 1em\">Enable receiver.<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>PARENB<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"40%\">\n<p>Parity enable.<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>PARODD<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"40%\">\n<p>Odd parity, else even.<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>HUPCL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"40%\">\n<p>Hang up on last close.<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>CLOCAL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"40%\">\n<p>Ignore modem status lines.<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The implementation shall support the functionality associated with the symbols CS7, CS8, CSTOPB, PARODD, and PARENB.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Local Modes<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use as flags in the <i>c_lflag<\/i> field. The <i>c_lflag<\/i> field of the argument structure is used to control various terminal functions.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">ECHO<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">Enable echo.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ECHOE<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Echo erase character as error-correcting backspace.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ECHOK<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Echo KILL.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ECHONL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Echo NL.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ICANON<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Canonical input (erase and kill processing).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>IEXTEN<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Enable extended input character processing.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>ISIG<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Enable signals.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>NOFLSH<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Disable flush after interrupt or quit.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>TOSTOP<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Send SIGTTOU for background output.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Attribute Selection<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use with <i>tcsetattr<\/i>():<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\">TCSANOW<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">Change attributes immediately.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>TCSADRAIN<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"71%\">\n<p>Change attributes when output has drained.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>TCSAFLUSH<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"71%\">\n<p>Change attributes when output has drained; also flush pending input.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Line Control<\/b> <br \/> The <i><termios.h><\/i> header shall define the following symbolic constants for use with <i>tcflush<\/i>():<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\">TCIFLUSH<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">Flush pending input.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>TCIOFLUSH<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"71%\">\n<p>Flush both pending input and untransmitted output.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>TCOFLUSH<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"71%\">\n<p>Flush untransmitted output.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><termios.h><\/i> header shall define the following symbolic constants for use with <i>tcflow<\/i>():<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">TCIOFF<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">Transmit a STOP character, intended to suspend input data.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>TCION<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Transmit a START character, intended to restart input data.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>TCOOFF<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Suspend output.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>TCOON<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Restart output.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><termios.h><\/i> header shall define the <b>pid_t<\/b> type as described in <i><sys\/types.h><\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">speed_t cfgetispeed(const struct termios *); <br \/> speed_t cfgetospeed(const struct termios *); <br \/> int cfsetispeed(struct termios *, speed_t); <br \/> int cfsetospeed(struct termios *, speed_t); <br \/> int tcdrain(int); <br \/> int tcflow(int, int); <br \/> int tcflush(int, int); <br \/> int tcgetattr(int, struct termios *); <br \/> pid_t tcgetsid(int); <br \/> int tcsendbreak(int, int); <br \/> int tcsetattr(int, int, const struct termios *);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>The following sections are informative.<\/i><\/p>\n<h2>APPLICATION USAGE <a name=\"APPLICATION USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following names are reserved for XSI-conformant systems to use as an extension to the above; therefore strictly conforming applications shall not use them:<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-735572.png\" alt=\"Image grohtml-735572.png\"><\/p>\n<h2>RATIONALE <a name=\"RATIONALE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>FUTURE DIRECTIONS <a name=\"FUTURE DIRECTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><sys_types.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The System Interfaces volume of POSIX.1-2017, <i>cfgetispeed<\/i>(), <i>cfgetospeed<\/i>(), <i>cfsetispeed<\/i>(), <i>cfsetospeed<\/i>(), <i>confstr<\/i>(), <i>tcdrain<\/i>(), <i>tcflow<\/i>(), <i>tcflush<\/i>(), <i>tcgetattr<\/i>(), <i>tcgetsid<\/i>(), <i>tcsendbreak<\/i>(), <i>tcsetattr<\/i>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Shell and Utilities volume of POSIX.1-2017, <i>Chapter 11<\/i>, <i>General Terminal Interface<\/i>, <i>getconf<\/i><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology &#8212; Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http:\/\/www.opengroup.org\/unix\/online.html .<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https:\/\/www.kernel.org\/doc\/man-pages\/reporting_bugs.html .<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  termios.h \u2014 define values for termios <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3781,1],"tags":[2588,2678],"class_list":["post-5994","post","type-post","status-publish","format-standard","hentry","category-0p-posix-cabeceras-de-bibliotecas-de-c","category-sin-categoria","tag-man0p","tag-termios"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/5994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=5994"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/5994\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=5994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=5994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=5994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}