stty.1

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

1
729
字号
.\" SCCSID: @(#)stty.1	2.5	8/24/87.TH stty 1.SH Namestty \- set terminal options.SH Syntax.B stty[\|\fIoption...\fR\|].SH Description.NX R "stty command".NX R "Terminals" "setting input\/output characteristics"The.PN sttycommandsets or reports certain input/output characteristics of the currentoutput terminal.Output from the .PN sttyprogram is sent to the diagnostic output (standard error).The.PN sttycommand is used in two terminal environments.  The terminalenvironment is determined by the setting of the terminal'sline discipline.  If the terminal's line discipline is set toanything other than TERMIODISC (termio line discipline), referto the sections entitled"Non-Termio Operation" and "Non-Termio Options."If your terminal line is set to the termio line discipline, refer to thesections entitled "Termio Operation" and "Termio Options.".br.spNote that you can use the command.PN stty .PN discto find out the current line discipline of your terminal..SH Non-termio OperationWith no argument, the.PN sttycommand reports the speed of the terminal and thesettings of the options that are different from their defaults.The following arguments report the current settings of the terminal:.IP all 15Reports all normally used non-termio option settings. .IP everythingReports all non-termio option settings..sp.SH Non-Termio OptionsThe option strings for terminals that are not using the termio line discipline areselected from the following set:.sp.TP  15.B even Allows even parity input..TP .B \-even Disallows even parity input..TP .B odd Allows odd parity input..TP .B \-odd Disallows odd parity input..TP .B raw Specifies raw mode input withno input processing (for example, erase, kill, interrupt);parity bit passed back..TP .B \-raw Negates raw mode..TP.B cooked Negates raw mode..TP.B cbreakMakes each character available to .MS read 2 as it is received; all processing other than eraseand kill processing is performed..TP.B \-cbreakMakes characters available to .I readonly when new line is received..TP.B \-nl Allows carriage return for new-line,and outputs CR-LF for carriage return or new-line..TP.B nl Accepts only new-line to end lines..TP.B echo Echoes back every character typed..TP.B \-echo Does not echo characters..TP.B lcase Maps upper case to lower case..TP.B \-lcase Does not map case..TP.B tandemEnables flow control.  The system sends out the stop character whenits internal queue is in danger of overflowing on input; it sends thestart character when it is ready to accept further input..TP.B \-tandemDisables flow control..TP.B \-tabs Replaces tabs with spaces when printing..TP.B tabs Preserves tabs.  This option may cause unpredictable behaviorif unprintable characters, such as escape sequences, aresent to the terminal..TP.B ek Sets erase and kill characters to the pound sign (#) andat sign (@) respectively..TP.B termiodSets line discipline to termio line discipline.  Note that once the linediscipline has been changed to TERMIODISC, the termio options to .PN sttyshould be used..TP.B discReports the current line discipline..TP.B oldSets line discipline to the old line discipline (OTTDISC)..sp.PPThe following commands take a character argument \fIc\fR.You may specify u or undef instead of \fIc\fR to leave the valueundefined.  The two character sequence of .CT xis alsointerpreted as a control character, with .CT ?representing delete..TP 15.BI erase \ c\fRSets the erase character to.I c.The default is the pound sign (#), but it is often reset to <CTRL/H>..TP.BI kill \ c\fRSets the kill character to.I c.The default is the at sign (@), but it is often reset to <CTRL/U>..TP.BI intr \ c\fRSets the interrupt character to.I c.The default is DEL or.CT ? but it is often reset to <CTRL/C>..TP.BI quit \ c\fRSets the quit character to.I c.The default is <CTRL/\\>..TP.BI start \ c\fRSets the start character to.I c.The default is <CTRL/Q>..TP.BI stop \ c\fRSets the stop character to.I c.The default is <CTRL/S>..TP.BI eof \ c\fRSets the end of file character to.I c.The default is <CTRL/S>..TP.BI brk \ c\fRSets the break character to.I c.The default is undefined.This character causes a wakeup..TP.B  cr0 cr1 cr2 cr3Selects style of delay for carriage return; see.MS ioctl 2for more information..TP.B  nl0 nl1 nl2 nl3Selects style of delay for linefeed..TP.B  tab0 tab1 tab2 Selects style of delay for tab..TP.B  ff0 ff1Selects style of delay for form feed..TP.B bs0 bs1Selects style of delay for backspace..TP.B decSets all modes suitable for Digital Equipment Corporation operating systemsusers.  This command sets erase to<CTRL/?>, kill to <CTRL/U>, and interrupt to <CTRL/C>.It also sets the decctlq and newcrt options..TP.B sizePrints the display size.  The format is (rows) (columns)..TP.B rows iSets the number of rows in the display to.I i..TP.B cols iSets the number of columns in the display to.I i..TP.B exclSets line to exclusive use..TP.B \-exclClears exclusive use status..TP.B 0 Hangs 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..sp.PPThe following are unsupported terminal devices:.TP 15.B tty33 Sets all modes suitable for theTeletype Corporation Model 33 terminal..TP.B tty37 Sets all modes suitable for theTeletype Corporation Model 37 terminal..TP.B vt05 Sets all modes suitable for Digital Equipment Corporation VT05 terminal..TP.B tn300 Sets all modes suitable for a General Electric TermiNet 300..TP.B ti700 Sets all modes suitable for Texas Instruments 700 series terminal..TP.B tek Sets all modes suitable for Tektronix 4014 terminal..sp.PPA teletype driver that supports the job control processing of.MS csh 1 and has more functionality than the basic driver isfully described in .MS tty 4 .The following options apply only to it:.sp.TP 15.B newUses new driver (switching flushes typeahead).Sets line discipline to NTTYDISC..TP.B crtSets options for a CRT (crtbs, ctlecho and, if greaterthan or equal to 1200 baud, it setscrterase and crtkill.).TP.B crtbsEchoes backspaces on erase characters..TP.B prteraseEchoes characters that have been erased..TP.B crteraseWipes out erased characters with the following combinationof keystrokes:  backspace-space-backspace..TP.B \-crteraseLeaves characters visible that have been erased.  Invokethis option by using thebackstroke key alone..TP.B crtkillWipes out input.  Similar to.B crterasein how it works..TP.B \-crtkillEchoes the line kill character and a new line on line kill..TP.B ctlechoEchoes control characters as a circumflex followed by the character.For example, .CT Xechoes as .B ^X.  Type two backspaces following theEOT character (<CTRL/D>)..TP.B \-ctlechoEchoes control characters as themselves; in cooked mode EOT (<CTRL/D>)is not echoed..TP.B decctlqEnables a start character (normally <CTRL/Q>) to restartoutput when it has been suspended..TP.B \-decctlqEnables any character that you type to restart output when ithas been suspended.The start character restarts output without providing any input.This is the default..TP.B noflshSuppresses flushing of input and output queues upon receipt of an interrupt signal..TP.B \-noflshFlushes input and output queues upon receipt of interrupt signal..TP.B tostopStops background jobs if they attempt terminal output..TP.B \-tostopAllows output from background jobs to the terminal..TP.B tildeConverts the tilde (\~) to a backslash (\\) on output..TP.B \-tildeSuppresses conversion of the tilde (\~) to a backslash (\\)..TP.B flushoDiscards output usually because the user hit a.CT O(internal state bit)..TP.B \-flushoOutput is not discarded..TP.B pendinResubmits input that is pending after a switch from cbreak to cooked.Activated when a read becomes pending or more input arrives(internal state bit)..TP.B \-pendinSpecifies that input is not pending..TP.B litoutSends output characters without any processing..TP

⌨️ 快捷键说明

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