.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.012. .TH STTY "1" "August 1999" "GNU sh-utils 2.0" FSF .SH NAME stty \- change and print terminal line settings .SH SYNOPSIS .B stty [\fI-F device\fR] [\fI--file=device\fR] [\fISETTING\fR]... .br .B stty [\fI-F device\fR] [\fI--file=device\fR] [\fI-a|--all\fR] .br .B stty [\fI-F device\fR] [\fI--file=device\fR] [\fI-g|--save\fR] .SH DESCRIPTION .PP .\" Add any additional description here .PP Print or change terminal characteristics. .TP \fB\-a\fR, \fB\-\-all\fR print all current settings in human-readable form .TP \fB\-g\fR, \fB\-\-save\fR print all current settings in a stty-readable form .TP \fB\-F\fR, \fB\-\-file\fR open and use the specified device instead of stdin .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR output version information and exit .PP Optional - before SETTING indicates negation. An * marks non-POSIX settings. The underlying system defines which settings are available. .PP Special characters: * dsusp CHAR CHAR will send a terminal stop signal once input flushed .TP eof CHAR CHAR will send an end of file (terminate the input) .TP eol CHAR CHAR will end the line .PP * eol2 CHAR alternate CHAR for ending the line .TP erase CHAR CHAR will erase the last character typed .TP intr CHAR CHAR will send an interrupt signal .TP kill CHAR CHAR will erase the current line .PP * lnext CHAR CHAR will enter the next character quoted .TP quit CHAR CHAR will send a quit signal .PP * rprnt CHAR CHAR will redraw the current line .TP start CHAR CHAR will restart the output after stopping it .TP stop CHAR CHAR will stop the output .TP susp CHAR CHAR will send a terminal stop signal .PP * swtch CHAR CHAR will switch to a different shell layer * werase CHAR CHAR will erase the last word typed .SS "Special settings:" .TP N set the input and output speeds to N bauds .PP * cols N tell the kernel that the terminal has N columns * columns N same as cols N .TP ispeed N set the input speed to N .PP * line N use line discipline N .TP min N with \fB\-icanon\fR, set N characters minimum for a completed read .TP ospeed N set the output speed to N .PP * rows N tell the kernel that the terminal has N rows * size print the number of rows and columns according to the kernel .TP speed print the terminal speed .TP time N with \fB\-icanon\fR, set read timeout of N tenths of a second .SS "Control settings:" .TP [-]clocal disable modem control signals .TP [-]cread allow input to be received .PP * [-]crtscts enable RTS/CTS handshaking .TP csN set character size to N bits, N in [5..8] .TP [-]cstopb use two stop bits per character (one with `-') .TP [-]hup send a hangup signal when the last process closes the tty .TP [-]hupcl same as [-]hup .TP [-]parenb generate parity bit in output and expect parity bit in input .TP [-]parodd set odd parity (even with `-') .SS "Input settings:" .TP [-]brkint breaks cause an interrupt signal .TP [-]icrnl translate carriage return to newline .TP [-]ignbrk ignore break characters .TP [-]igncr ignore carriage return .TP [-]ignpar ignore characters with parity errors .PP * [-]imaxbel beep and do not flush a full input buffer on a character .TP [-]inlcr translate newline to carriage return .TP [-]inpck enable input parity checking .TP [-]istrip clear high (8th) bit of input characters .PP * [-]iuclc translate uppercase characters to lowercase * [-]ixany let any character restart output, not only start character .TP [-]ixoff enable sending of start/stop characters .TP [-]ixon enable XON/XOFF flow control .TP [-]parmrk mark parity errors (with a 255-0-character sequence) .TP [-]tandem same as [-]ixoff .PP Output settings: * bsN backspace delay style, N in [0..1] * crN carriage return delay style, N in [0..3] * ffN form feed delay style, N in [0..1] * nlN newline delay style, N in [0..1] * [-]ocrnl translate carriage return to newline * [-]ofdel use delete characters for fill instead of null characters * [-]ofill use fill (padding) characters instead of timing for delays * [-]olcuc translate lowercase characters to uppercase * [-]onlcr translate newline to carriage return-newline * [-]onlret newline performs a carriage return * [-]onocr do not print carriage returns in the first column .TP [-]opost postprocess output .PP * tabN horizontal tab delay style, N in [0..3] * tabs same as tab0 * \fB\-tabs\fR same as tab3 * vtN vertical tab delay style, N in [0..1] .SS "Local settings:" .TP [-]crterase echo erase characters as backspace-space-backspace .PP * crtkill kill all line by obeying the echoprt and echoe settings * \fB\-crtkill\fR kill all line by obeying the echoctl and echok settings * [-]ctlecho echo control characters in hat notation (`^c') .TP [-]echo echo input characters .PP * [-]echoctl same as [-]ctlecho .TP [-]echoe same as [-]crterase .TP [-]echok echo a newline after a kill character .PP * [-]echoke same as [-]crtkill .TP [-]echonl echo newline even if not echoing other characters .PP * [-]echoprt echo erased characters backward, between `\' and '/' .TP [-]icanon enable erase, kill, werase, and rprnt special characters .TP [-]iexten enable non-POSIX special characters .TP [-]isig enable interrupt, quit, and suspend special characters .TP [-]noflsh disable flushing after interrupt and quit special characters .PP * [-]prterase same as [-]echoprt * [-]tostop stop background jobs that try to write to the terminal * [-]xcase with icanon, escape with `\' for uppercase characters .PP Combination settings: * [-]LCASE same as [-]lcase .TP cbreak same as \fB\-icanon\fR .TP \fB\-cbreak\fR same as icanon .TP cooked same as brkint ignpar istrip icrnl ixon opost isig icanon, eof and eol characters to their default values .TP \fB\-cooked\fR same as raw .TP crt same as echoe echoctl echoke .TP dec same as echoe echoctl echoke \fB\-ixany\fR intr ^c erase 0177 kill ^u .PP * [-]decctlq same as [-]ixany .TP ek erase and kill characters to their default values .TP evenp same as parenb \fB\-parodd\fR cs7 .TP \fB\-evenp\fR same as \fB\-parenb\fR cs8 .PP * [-]lcase same as xcase iuclc olcuc .TP litout same as \fB\-parenb\fR \fB\-istrip\fR \fB\-opost\fR cs8 .TP \fB\-litout\fR same as parenb istrip opost cs7 .TP nl same as \fB\-icrnl\fR \fB\-onlcr\fR .TP \fB\-nl\fR same as icrnl \fB\-inlcr\fR \fB\-igncr\fR onlcr \fB\-ocrnl\fR \fB\-onlret\fR .TP oddp same as parenb parodd cs7 .TP \fB\-oddp\fR same as \fB\-parenb\fR cs8 .TP [-]parity same as [-]evenp .TP pass8 same as \fB\-parenb\fR \fB\-istrip\fR cs8 .TP \fB\-pass8\fR same as parenb istrip cs7 .TP raw same as \fB\-ignbrk\fR \fB\-brkint\fR \fB\-ignpar\fR \fB\-parmrk\fR \fB\-inpck\fR \fB\-istrip\fR \fB\-inlcr\fR \fB\-igncr\fR \fB\-icrnl\fR \fB\-ixon\fR \fB\-ixoff\fR \fB\-iuclc\fR \fB\-ixany\fR \fB\-imaxbel\fR \fB\-opost\fR \fB\-isig\fR \fB\-icanon\fR \fB\-xcase\fR min 1 time 0 .TP \fB\-raw\fR same as cooked .TP sane same as cread \fB\-ignbrk\fR brkint \fB\-inlcr\fR \fB\-igncr\fR icrnl \fB\-ixoff\fR \fB\-iuclc\fR \fB\-ixany\fR imaxbel opost \fB\-olcuc\fR \fB\-ocrnl\fR onlcr \fB\-onocr\fR \fB\-onlret\fR \fB\-ofill\fR \fB\-ofdel\fR nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok \fB\-echonl\fR \fB\-noflsh\fR \fB\-xcase\fR \fB\-tostop\fR \fB\-echoprt\fR echoctl echoke, all special characters to their default values. .PP Handle the tty line connected to standard input. Without arguments, prints baud rate, line discipline, and deviations from stty sane. In settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or 127; special values ^- or undef used to disable special characters. .SH "REPORTING BUGS" Report bugs to . .SH "SEE ALSO" The full documentation for .B stty is maintained as a Texinfo manual. If the .B info and .B stty programs are properly installed at your site, the command .IP .B info stty .PP should give you access to the complete manual. .SH COPYRIGHT Copyright \(co 1999 Free Software Foundation, Inc. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.