⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stty.1

📁 Unix操作系统minix 2.0源码
💻 1
字号:
.TH STTY 1.SH NAMEstty \- set terminal parameters.SH SYNOPSIS.de SP.if t .sp 0.4.if n .sp...in +4n.ti -4n.B stty.RB [ \-ag].SP.ti -4n.B stty.I encoded-form.SP.ti -4n.B stty.I speed.B ispeed.I speed.B ospeed.I speed.B "cs5 cs6 cs7 cs8".RB [ \- ] parenb.RB [ \- ] parodd.RB [ \- ] hupcl.RB [ \- ] cstopb.RB [ \- ] cread.RB [ \- ] clocal.RB [ \- ] ignbrk.RB [ \- ] brkint.RB [ \- ] ignpar.RB [ \- ] parmrk.RB [ \- ] inpck.RB [ \- ] istrip.RB [ \- ] inlcr.RB [ \- ] igncr.RB [ \- ] icrnl.RB [ \- ] ixon.RB [ \- ] ixoff.RB [ \- ] ixany.RB [ \- ] opost.RB [ \- ] onlcr.RB [ \- ] xtabs.RB [ \- ] onoeot.RB [ \- ] isig.RB [ \- ] icanon.RB [ \- ] iexten.RB [ \- ] echo.RB [ \- ] echoe.RB [ \- ] echok.RB [ \- ] echonl.RB [ \- ] noflsh.RB [ \- ] lflusho.BR eof =\fIc.BR eol =\fIc.BR erase =\fIc.BR erase =\fIc.BR intr =\fIc.BR kill =\fIc.BR quit =\fIc.BR susp =\fIc.BR start =\fIc.BR stop =\fIc.BR rprnt =\fIc.BR lnext =\fIc.BR flush =\fIc.BR min =\fIn.BR time =\fIn.B rows.I n.B cols.I n.B cooked.B raw.RB [ \- ] evenp.RB [ \- ] parity.RB [ \- ] oddp.RB [ \- ] nl.B ek.B sane.in -4n.SH DESCRIPTION.B Sttyshows or changes the parameters of the terminal connected to standard input..B Sttytakes a myriad of arguments most of which are mapped directly tothe flags and special characters described in.BR tty (4),so we won't describe them here..PP.B Sttyhas three forms of operation.  First, without any arguments.B sttyshows all terminal attributes that are different from the default state.Option.B \-amakes.B sttyprint all terminal attributes, and.B \-glets.B sttyprint the attributes in a special encoded form, a simple row of colon separatedhexadecimal numbers..PPIn the second form of operation.B sttytakes an encoded form as produced by the.B \-goption and sets the terminals attributes to its decoded value..PPIn the third form.B sttyinterprets a series of flags and parameters settings and modifies theterminal attributes accordingly.  Flags can be given as.B icanonor.B \-icanonfor instance, either setting or clearing the.B ICANONflag.Special character values can by set like.B "intr=^C"for example, which sets the interrupt character to CTRL-C.  You can eitheruse a real CTRL-C, or the two characters `^' and `C'.  In any caseit is probably necessary to use quotes to guard it from the shell:.BR "intr='^C'" ..PPA number alone is interpreted as a baud rate setting for both the input andoutput rate.  The input or the output rate can be set separately with useof the.B ispeedand.B ospeedprefixes to the number.  The character size can be set with.BR cs5 ,.BR cs6 ,.BR cs7or.BR cs8 ..PPThe.B MINand.B TIMEvalue, and the number of rows and columns of the window can also be set usingone of the keywords.BR min ,.BR time ,.BR rowsor.BR cols ,followed by a decimal number that is the value of the setting..PP.B Sttyaccepts several keywords that are not named by corresponding flags orparameters in.BR tty (4).They set several attributes at once:.TP.B cookedSame as.BR "icrnl ixon opost onlcr isig icanon iexten echo" ,setting all the attributes that are needed for line oriented mode..TP.B rawSame as.BR "\-icrnl \-ixon \-opost \-onlcr \-isig \-icanon \-iexten \-echo" ,setting all the attributes for a raw data channel..TP.B evenp parityThese synonyms are equal to.BR "cs7 parenb \-parodd" ,setting the line to 7 bits even parity..TP.B oddpSame as.BR "cs7 parenb parodd" ,setting the line to 7 bits odd parity..TP.B "\-parity \-evenp \-oddp"All synonyms for.BR "cs8 \-parenb" ,setting the line to 8 bits, no parity..TP.B nlSame as.BR icrnl ,setting carriage return to line feed input translation..TP.B \-nlSame as.BR "\-icrnl \-inlcr \-igncr" ,disabling any carriage return or line feed handling..TP.B ekSet the.B ERASEand.B KILLspecial characters back to the default..TP.B saneSet all attributes to the default except things like the line speed andparity, because their "sane" value is probably what it is right now.The default values are compiled into.B sttyfrom the <termios.h> include file.  Use.B "stty sane; stty -a"to know what they are..SH FILES.TP 15n.B /etc/ttytabThe.B initfield of this file may contain an.B sttycommand to set the attributes to match an attached RS232 terminal or modem..SH "SEE ALSO".BR tty (4),.BR ttytab (5)..SH NOTESThe.BR cooked ,.BR raw ,.BR rowsand.BR colskeywords are Minix additions beyond the keywords defined by POSIX..B Rowsand.B colsare common UNIX extensions, however.There are more Minix specific flags that match the Minix specific attributesdescribed in.BR tty (4)..SH AUTHORKees J. Bot (kjb@cs.vu.nl)

⌨️ 快捷键说明

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