stty.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 729 行 · 第 1/2 页

1
729
字号
.B \-litoutDoes normal output processing, such as inserting delays..TP.B autoflowCauses the terminal multiplexer to automatically respond to start and stopcharacters.  This functionality is only provided if the stop character is .CT Sand the start character is <CTRL/Q>..TP.B \-autoflowUses software controlled flow control..TP.B nohangDoes not send a hangup signal if the carrier drops.Note that the .B nohangoption should be used carefully.  For example, suppose that you havethe.PN nohangoption in your .login file and are logged in over a modem.  If thecarrier drops, the next call in on this line gets your activeshell..TP.B \-nohangSends a hangup signal to control process group when carrier drops..TP.B pass8Allows full eight bit ascii characters in input and output..TP.B \-pass8Strips characters to seven bits, thus disallowing the use of eight bitascii characters..sp.PPThe following special characters are applicable only when the line discipline is set to NTTYDISC.  Theyare not normally changed.  The .PN stty.B newoption sets the line discipline to NTTYDISC..TP 15.BI susp \ c\fRSets the suspend process character to \fIc\fR.The default is <CTRL/Z>..TP.BI dsusp \ c\fRSets the delayed suspend process character to \fIc\fR.The default is <CTRL/Y>..TP.BI rprnt \ c\fRSets the reprint line character to \fIc\fR.The default is <CTRL/R>..TP.BI flush \ c\fRSets the flush output character to \fIc\fR.The default is <CTRL/O>..TP.BI werase \ c\fRSets the word erase character to \fIc\fR.The default is <CTRL/W>..TP.BI lnext \ c\fRSets the literal next character to \fIc\fR.The default is <CTRL/V>..TP.BI quote \ c\fRSets the quote character (for erase and kill) to \fIc\fR.The default is <CTRL/\\>..sp.SH Termio OperationThis section describes the arguments and options that are used whenthe terminal line is set to the termio line discipline (TERMIODISC).  Thetermio line discipline is intended for programs that use either IEEE P1003termios, or System Five style termio.  Unless noted otherwise, all options inthis section are applicable to both IEEE P1003 termios or System Five termio..PPWith no arguments, .B sttyreports the speed of the terminal and thesettings of certain options..sp.TP 5.B \-aReports option settings relevant to System Five termios..TP.B \-pReports option settings relevant to IEEE POSIX termios..PPFor more information about the modes listed in the first five groups belowrefer to .MS termio 4and.MS termios 4 . .sp.SH Termio OptionsFor terminals that are using the termio line discipline,select option strings from the following set:.SS Control Modes.TP 18.BR parenb " (" \-parenb )Enables (disables) parity generation and detection..TP.BR parodd " (" \-parodd )Selects odd (even) parity..TP.B "cs5 cs6 cs7 cs8"Select character size..TP.B 0Hangs up phone line immediately..TP.B "50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb"Sets terminal baud rate to the number given, if possible.(All speeds are not supported by all hardware interfaces.).TP 18.BR hupcl " (" \-hupcl )Sends (does not send) hangup signal on last close of terminal line..TP.BR cstopb " (" \-cstopb )Uses two (one) stop bits per character..TP.BR cread " (" \-cread )Enables (disables) the receiver..TP.BR clocal " (" \-clocal )Assumes a line without (with) modem control..TP.BR loblk " (" \-loblk )Blocks (does not block) output from a non-current layer.(System Five termio only).TP.BR autoflow " (" \-autoflow )Line operates with (without) hardware monitored flow control. (POSIX only).sp.SS Input Modes.TP 18.BR ignbrk " (" \-ignbrk )Ignores (does not ignore) break on input..TP.BR brkint " (" \-brkint )Signals (does not signal) \s-1INTR\s+1 on break..TP.BR ignpar " (" \-ignpar )Ignores (does not ignore) parity errors..TP.BR parmrk " (" \-parmrk )Marks (does not mark) parity errors..TP.BR inpck " (" \-inpck )Enables (disables) input parity checking..TP.BR istrip " (" \-istrip )Strips (does not strip) input characters to seven bits..TP.BR inlcr " (" \-inlcr )Maps (does not map) \s-1NL\s+1 to \s-1CR\s+1 on input..TP.BR igncr " (" \-igncr )Ignores (does not ignore) \s-1CR\s+1 on input..TP.BR icrnl " (" \-icrnl )Maps (does not map) \s-1CR\s+1 to \s-1NL\s+1 on input..TP.BR iuclc " (" \-iuclc )Maps (does not map) upper-case alphabetics to lower case on input..TP.BR ixon " (" \-ixon )Enables (disables) \s-1START\s+1/\s-1STOP\s+1output control.  Output is stopped by sendingan \s-1ASCII DC3\s+1 and started by sending an \s-1ASCII DC1\s+1..TP.BR ixany " (" \-ixany )Allows any character (only \s-1DC1\s+1) to restart output..TP.BR ixoff " (" \-ixoff )Requests that the system send (not send) \s-1START/STOP\s+1 characterswhen the input queue is nearly empty/full..sp.SS Output Modes.TP.BR opost " (" \-opost )Post-processes output (does not post-process output; ignoresall other output modes)..TP.BR olcuc " (" \-olcuc )Maps (does not map) lower-case alphabetics to upper case on output..TP.BR onlcr " (" \-onlcr )Maps (does not map) \s-1NL\s+1 to \s-1CR-NL\s+1 on output..TP.BR ocrnl " (" \-ocrnl )Maps (does not map) \s-1CR\s+1 to \s-1NL\s+1 on output..TP.BR onocr " (" \-onocr )Does not output (outputs) \s-1CR\s+1s at column zero..TP.BR onlret " (" \-onlret )Performs (does not perform) the \s-1CR\s+1 function on the terminal \s-1NL\s+1..TP.BR ofill " (" \-ofill )Uses fill characters (uses timing) for delays..TP.BR ofdel " (" \-ofdel )Specifies fill characters as \s-1DEL\s+1s (\s-1NUL\s+1s)..TP.B "cr0 cr1 cr2 cr3"Selects style of delay for carriage returns..TP.B "nl0 nl1"Selects style of delay for line-feeds..TP.B "tab0 tab1 tab2 tab3"Selects style of delay for horizontal tabs..TP.B "bs0 bs1"Selects style of delay for backspaces..TP.B "ff0 ff1"Selects style of delay for form-feeds..TP.B "vt0 vt1"Selects style of delay for vertical tabs. .sp.SS Local Modes.TP 18.BR isig " (" \-isig )Enables (disables) the checking of characters against the special controlcharacters \s-1INTR\s+1 and \s-1QUIT\s+1..TP.BR icanon " (" \-icanon )Enables (disables) canonical input (\s-1ERASE\s+1 and \s-1KILL\s+1 processing)..TP.BR xcase " (" \-xcase )Presents canonical (unprocessed) upper/lower-case..TP.BR echo " (" \-echo )Echoes (does not echo) every character typed..TP.BR echoe " (" \-echoe )Echoes (does not echo) \s-1ERASE\s+1 character asa backspace-space-backspace string.  Note that this mode erases the\s-1ERASE\s+1ed character on many \s-1CRT\s+1 terminals;however, it does.I not\^keep track of column position and, as a result, may be confusingon escaped characters, tabs, and backspaces..TP.BR echok " (" \-echok )Echoes (does not echo) \s-1NL\s+1 after \s-1KILL\s+1 character..TP.BR echonl " (" \-echonl )Echoes (does not echo) \s-1NL\s+1..TP.BR noflsh " (" \-noflsh )Disables (enables) flush after \s-1INTR\s+1 or \s-1QUIT\s+1..TP.BR ctlech " (" \-ctlech )Echoes (echo control characters unchanged) control characters as ^\fIx\fRand delete as ^?. (POSIX only).TP.BR prtera " (" \-prtera )Echoes (does not echo) erased characters enclosed within back and forward slashes (\\ /) for printing terminals.  (POSIX only).TP.BR crtera " (" \-crtera )Wipes out (simply backspace) erased characters with backspace-space-backspace.(POSIX only).TP.BR crtkil " (" \-crtkil )Wipes out line (kill character and newline) with backspace-space-backspace.(POSIX ONLY).sp.SS Control Assignments.TP 18.I "control-character c"Sets.I control-characterto.IR c ,where.I control-characteris.BR erase ", " kill ", " intr ,.BR quit ", " eof ", " eol ,.BR min ", or " time.BR ( min " and " timeare used with.BR \-icanon "..PPThe following control characters are applicable to POSIX mode only:.BR susp ", " dsusp ", " rprnt ,.BR flush ", " werase ", " lnext ", .BR quote..PPIf.I c\^is preceded by a circumflex.RB ( ^ ),then the value used is the corresponding .B CTRL character (for example, ^d is a .B CTRL-d );^? is interpreted as DEL and ^\-  is interpreted as undefined..PPThe.B newoptionsets the line discipline to NTTYDISC.  Note that this changes the line discipline to be a non-termio line discipline.  Once this has been donethe.PN sttyoptions described in the non-termio section should be used..sp.SS Combination Modes.TP 18.BR evenp "\ or\ " parityEnables.BR parenb " and " cs7 ..TP.B oddpEnables .BR parenb ", " cs7 ", and " parodd ..TP.BR \-parity ", " \-evenp ", or " \-oddpDisables.BR parenb ,and set.BR cs8 ..TP.BR nl " (" \-nl )Unsets (sets).BR icrnl ", " onlcr .In addition.B \-nlunsets.BR inlcr ", " igncr ", ".BR ocrnl ", and " onlret ..TP.BR lcase " (" \-lcase )Sets (unsets).BR xcase ", " iuclc ", and " olcuc ..TP.BR \s-1LCASE\s+1 " (" \-\s-1LCASE\s+1 )Sets (unsets).BR xcase ", " iuclc ", and " olcuc ..TP.BR tabs " (" \-tabs "\ or\ " tab3 )Preserves (expands to spaces) tabs when printing..TP.B ekResets \s-1ERASE\s+1 and \s-1KILL\s+1 characters back to normal.B #and.BR @ ..TP.B saneResets all modes to some reasonable values..SH See Alsoioctl(2), tabs(1), tset(1), tty(4), termio(4), termios(4)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?