📄 c_stty.htm
字号:
<title>The stty Command</title><h1>stty</h1><!--INDEX "stty command" "set terminal parameters" --><!--INDEX baud ixany ixoff sane -->The stty command displays and sets terminal options.<p></dl><h2>Format</h2><dl><dd>The format for this command is:<p><pre>stty [device][-av] [baud] [sane] [term] [ixany|-ixany] [ixoff|-ixoff]</pre>where:<p><table><tr><td>device </td><td>is either tty0 or tty1. The default is tty0.</td></tr><tr><td>-a </td><td>gives a long listing showing all current settings.</td></tr><tr><td>-v </td><td>displays the possible choices for baud rate and terminal type.</td></tr><tr><td>baud </td><td>sets the baud rate.</td></tr><tr><td>sane </td><td>resets terminal settings to the default.</td></tr><tr><td>term </td><td>sets the terminal emulation type. </td></tr><tr><td>ixany </td><td>allows any character to restart the output.</td></tr><tr><td>-ixany </td><td>allows only START to restart the output.</td></tr><tr><td>ixoff </td><td>enables the tandem mode.</td></tr><tr><td>-ixoff </td><td>disables the tandem mode.</td></tr></table><p>When invoking the stty command with no parameters, the <a href="mondef.htm">Monitor</a> displays the terminal type and baud rate for the tty0 port.<p></dl><h2>Functional Description</h2><dl><dd>The stty command displays and sets the terminal options, such as terminal emulation type, baud rate, and ioctl settings. First, to display the current terminal type, baud rate, and ioctl settings for tty0, enter:<p><pre>PMON> stty -a</pre>To display the same information for tty1, enter:<p></pre>PMON> stty tty1 -a</pre>To change the baud rate or terminal type for tty0, simply enter the new set-ting after stty. Precede the new setting with tty1 to change the settings for tty1. <p>Examples illustrating the use of this command follow.<p></pre>PMON> stty Display terminal type and baud rate for tty0.term=tvi920 baud=9600 PMON> stty -a Display terminal type, baud rate, and ioctl settings for tty0.term=tvi920 baud=9600 canon echo echoe onlcr icrnl istrip ixon erase=^H stop= start=^Q eol=^J eol2=^C vintr=^C PMON> stty 9600 Set baud rate for tty0 to 9600.PMON> stty -v List available baud rates.Baud rates: 50 75 110 134 200 150 300 600 1200 1800 2400 4800 9600 19200 38400PMON> stty tvi920 Set terminal type for tty0 to tvi920.PMON> stty tvi920 9600 Set terminal type and baud rate for tty0 to tvi920 and 9600 baud.</pre>PMON> stty tty1 sane Reset ioctl settings for tty1.PMON> stty tty1 19200 Set tty1 to 19200 baud.</dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -