You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
5.7 KiB
133 lines
5.7 KiB
<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>
|
|
|
|
|
|
|
|
<h2>Format</h2>
|
|
<p> The format for this command is:</p>
|
|
<blockquote>
|
|
<pre> <font size="+1">stty [device][-av] [baud] [sane] [term][ixany|-ixany] [ixoff|-ixoff] </font></pre>
|
|
</blockquote>
|
|
<p> where:</p>
|
|
<blockquote>
|
|
<p> </p>
|
|
</blockquote>
|
|
<dl>
|
|
<dd>
|
|
<table width="95%">
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="72" nowrap align="right" valign="top"> device </td>
|
|
<td width="480" align="left" valign="top">is either tty0 or tty1. The
|
|
default is tty0. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="72" nowrap align="right" valign="top"> -a </td>
|
|
<td width="480" align="left" valign="top">gives a long listing showing
|
|
all current settings. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="72" nowrap align="right" valign="top"> -v </td>
|
|
<td width="480" align="left" valign="top">displays the possible choices
|
|
for baud rate and terminal type. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="72" nowrap align="right" valign="top"> baud </td>
|
|
<td width="480" align="left" valign="top">sets the baud rate. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="72" nowrap align="right" valign="top"> sane </td>
|
|
<td width="480" align="left" valign="top">resets terminal settings to
|
|
the default. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="72" nowrap align="right" valign="top"> term </td>
|
|
<td width="480" align="left" valign="top">sets the terminal emulation
|
|
type. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="72" nowrap align="right" valign="top"> ixany </td>
|
|
<td width="480" align="left" valign="top">allows any character to restart
|
|
the output. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="72" nowrap align="right" valign="top"> -ixany </td>
|
|
<td width="480" align="left" valign="top">allows only START to restart
|
|
the output. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="72" nowrap align="right" valign="top"> ixoff </td>
|
|
<td width="480" align="left" valign="top">enables the tandem mode. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="72" nowrap align="right" valign="top"> -ixoff </td>
|
|
<td width="480" align="left" valign="top">disables the tandem mode. </td>
|
|
</tr>
|
|
</table>
|
|
</dl>
|
|
<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>
|
|
<blockquote>
|
|
<p> </p>
|
|
</blockquote>
|
|
<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>
|
|
</dl>
|
|
<p> To display the same information for tty1, enter:</p>
|
|
<p> PMON> stty tty1 -a 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>
|
|
<p> Examples illustrating the use of this command follow.</p>
|
|
<blockquote>
|
|
<pre>PMON> stty Display terminal type and baud rate for tty0. <br> term=tvi920 baud=9600
|
|
|
|
PMON> stty -a Display terminal type, baud rate, and ioctl settings for tty0. <br> term=tvi920 baud=9600 canon echo echoe onlcr icrnl istrip ixon <br> 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 <b>available</b> baud rates, terminal types and current baud.<br> Baud rates: 50 75 110 134 200 150 300 600 1200 <br> 1800 2400 4800 9600 19200 38400 <br> Terminal Types:<br> tvi920 vt100
|
|
Baud: 9600<br>
|
|
PMON> 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.
|
|
|
|
PMON> stty tty1 sane Reset ioctl settings for tty1.
|
|
|
|
PMON> stty tty1 19200 Set tty1 to 19200 baud.
|
|
|
|
</pre>
|
|
</blockquote>
|
|
<h2>See Also:<br>
|
|
</h2>
|
|
<p><hr>
|
|
|
|
<b>Navigation:</b>
|
|
|
|
<a href="pmon.htm">Document Home</a> |
|
|
|
|
<a href="doctoc.htm">Document Contents</a> |
|
|
|
|
<a href="docindex.htm">Document Index</a>
|
|
<p>
|
|
<p>
|
|
<p><!--$Id: c_stty.htm,v 1.1.1.1 2006/09/14 01:59:06 root Exp $ --></p>
|
|
<p>
|
|
|