GNU sh-utils 2.0
August 1999
manpages-zh
Chinese manual pages
man-pages-zh_tw
Traditional Chinese Linux man pages
coreutils
The basic file, shell and text manipulation utilities of the GNU operating system
coreutils-common
coreutils common optional components
coreutils-doc
Documentation for the GNU Core Utilities
NAME
stty - 改變並打印終端行設置
總覽
stty [-F device] [--file=device] [SETTING]...
stty [-F device] [--file=device] [-a|--all]
stty [-F device] [--file=device] [-g|--save]
stty [-F device] [--file=device] [-a|--all]
stty [-F device] [--file=device] [-g|--save]
描述
打印或改變終端屬性.
-a, --all | 以可讀的格式打印當前的所有設置 |
-g, --save | 以終端可讀的格式打印當前的所有設置 |
-F, --file | 打開指定的設備,並用此設備作爲輸入來代替標準輸入 |
--help | 顯示幫助並退出 |
--version | |
顯示版本信息並退出 |
特殊字符
* dsusp CHAR CHAR表示輸入滿時,發一個停止信號給終端
eof CHAR | |
CHAR表示一個文件結束 (結束輸入) | |
eol CHAR | |
CHAR表示當前行結束 | |
* eol2 CHAR CHAR是另一個表示結束當前行的字符 | |
erase CHAR | |
CHAR表示擦除最後一個輸入字符 | |
intr CHAR | |
CHAR表示發一箇中斷信號 | |
kill CHAR | |
CHAR表示擦除當前行 | |
* lnext CHAR CHAR表示輸入下一個字符 | |
quit CHAR | |
CHAR表示發出一個退出信號 | |
* rprnt CHAR CHAR表示刷新當前行 | |
start CHAR | |
CHAR表示在停止輸出後重新開始輸出 | |
stop CHAR | |
CHAR表示停止輸出 | |
susp CHAR | |
CHAR表示發送一個終端停止信號 |
* werase CHAR CHAR表示擦除已經輸入的最後一個單詞
特殊設置
N | 把輸入和輸出的波特率設爲N |
* cols N 通知內核終端有N列 | |
* columns N 與cols N 相同 | |
ispeed N | |
設置輸入速度爲N | |
* line N 用行約束規則N | |
min N | 用 -icanon, 設置一次完整的讀操作最小爲N個字符 |
ospeed N | |
設置輸出速度爲N | |
* rows N 通知內核終端有N行 | |
* size 根據內核打印出終端的行數和列數 | |
speed | 打印出終端的速度 |
time N | 同時用 -icanon, 設置讀超時爲十分之N秒 |
控制設置
[-]clocal | |
關閉解調器的控制信號 | |
[-]cread | |
允許接收輸入 | |
* [-]crtscts 允許 RTS/CTS 的握手 | |
csN | 把字符長度設爲N, N 爲[5..8] |
[-]cstopb | |
對每字符使用兩個停止位 (一個帶有 ‘-’) | |
[-]hup | 當最後一個進程關閉終端後,發一個掛起信號 |
[-]hupcl | |
同 [-]hup | |
[-]parenb | |
在輸出中產生奇偶校驗位,並要求在輸入中也有奇偶校驗位 | |
[-]parodd | |
設置奇校驗 (偶校驗用 ‘-’) |
輸入設置:
[-]brkint | |
暫停併產生中斷信號 | |
[-]icrnl | |
將回車解釋爲換行 | |
[-]ignbrk | |
忽略中斷信號 | |
[-]igncr | |
忽略回車符 | |
[-]ignpar | |
忽略有奇偶校驗錯的字符 | |
* [-]imaxbel 對一個字符產生嘟叫,但不刷新已滿的輸入緩衝區 | |
[-]inlcr | |
將換行解釋爲回車 | |
[-]inpck | |
打開輸入奇偶校驗 | |
[-]istrip | |
清除輸入字符的高位(第8位) | |
* [-]iuclc 將大寫字符轉換成小寫字符 | |
* [-]ixany 使任何字符都重新開始輸出(而 不僅僅是重新輸出字符能實現此功能) | |
[-]ixoff | |
打開發送開始/停止字符的開關 | |
[-]ixon | |
打開XON/XOFF的流量控制 | |
[-]parmrk | |
標記奇偶校驗錯誤 (使用255-0-character 字符序列) | |
[-]tandem | |
同 [-]ixoff | |
輸出設置: | |
* bsN 回退延遲, N 爲 [0..1] | |
* crN 回車延遲, N 爲 [0..3] | |
* ffN 換頁延遲, N 爲 [0..1] | |
* nlN 換行延遲, N 爲 [0..1] | |
* [-]ocrnl 將回車解釋爲換行 | |
* [-]ofdel 使用刪除字符來填充,而不是用空字符填充 | |
* [-]ofill 使用填充字符,不使用定時延遲 | |
* [-]olcuc 將小寫字符轉換成大寫 | |
* [-]onlcr 將換行解釋爲回車-換行 | |
* [-]onlret 換行執行一次回車 | |
* [-]onocr 不在第一列打印回車 | |
[-]opost | |
postprocess 輸出 |
* tabs 同tab0
* -tabs 同tab3
* vtN 垂直方向tab鍵延遲。。。, N 爲 [0..1]
本地設置:
[-]crterase | |
將擦除字符顯示爲:退格-空格-退格 | |
* crtkill 根據echoprt和echoe的設置去除所有行 | |
* -crtkill 根據echoctl和echok設置去除所有行 | |
* [-]ctlecho 在頭部符號中顯示控制字符’^c’) | |
[-]echo | |
顯示輸入字符 | |
* [-]echoctl 同 [-]ctlecho | |
[-]echoe | |
同[-]crterase | |
[-]echok | |
在一個殺死字符後顯示一個換行 | |
* [-]echoke 同 [-]crtkill | |
[-]echonl | |
即使不顯示其它字符也換行 | |
* [-]echoprt 向後顯示在 ’' 和 ’/’之間的擦除字符 | |
[-]icanon | |
打開 erase, kill, werase, 和 rprnt 這些特殊字符 | |
[-]iexten | |
打開 非POSIX 特殊字符 | |
[-]isig | |
打開中斷,退出和掛起這些特殊字符 | |
[-]noflsh | |
在中斷和退出這些特殊字符後禁止刷新 | |
* [-]prterase 同 [-]echoprt | |
* [-]tostop 停止試圖寫終端的後臺作業 | |
* [-]xcase 與icanon同時使用, 表示用‘'退出大寫狀態 | |
綜合設置: | |
* [-]LCASE 同 [-]lcase | |
cbreak | 同 -icanon |
-cbreak | 同 icanon |
cooked | 同 brkint ignpar istrip icrnl ixon opost isig icanon, eof 和 eol 字符被設爲默認值 |
-cooked | 同 raw |
crt | 同 echoe echoctl echoke |
dec | 同 echoe echoctl echoke -ixany intr ^c erase 0177 kill ^u |
* [-]decctlq 同 [-]ixany | |
ek | 將擦除,殺死字符設爲它們的默認值 |
evenp | 同 parenb -parodd cs7 |
-evenp | 同 -parenb cs8 |
* [-]lcase 同 xcase iuclc olcuc | |
litout | 同 fB-parenb -istrip -opost cs8 |
-litout | 同 parenb istrip opost cs7 |
nl | 同 -icrnl -onlcr |
-nl | 同 icrnl -inlcr -igncr onlcr -ocrnl -onlret |
oddp | 同 parenb parodd cs7 |
-oddp | 同 -parenb cs8 |
[-]parity | |
同 [-]evenp | |
pass8 | 同 -parenb -istrip cs8 |
-pass8 | 同 parenb istrip cs7 |
raw | 同 -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuc lc -ixany -imaxbel -opost -isig -icanon -xcase min 1 ti me 0 |
-raw | 同 cooked |
sane | 同 cread -ignbrk brkint -inlcr -igncr icrnl -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff 0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke, 所有特殊字符 使用缺省值. |
報告臭蟲
報告臭蟲向.
參見
完整的文檔 stty 保持爲Texinfo手冊. 如果 info 及 stty 在你的機器上正確安裝的話, 命令
會使你能夠讀取完整的手冊.
info stty |
版權
Copyright © 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[中文版維護人]
hunter77 <email>
[中文版最新更新]
2003.11.22
《中國linux論壇man手冊頁翻譯計劃》:
http://cmpp.linuxforum.net
跋
本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
REFERENCED BY
console-setup(5), resizecons(8), stdin(3), termios(3), dir_colors(5), termcap(5), termio(7), readline(3readline), tcpdump(8), tcpdump(1), setterm(1), update-fonts-alias(8), update-fonts-dir(8), update-fonts-scale(8), kissattach(8), nrsdrv(8), dbacl(1), fd(1), fdsh(1), hylafax-config(5), faxaddmodem(8), ksh(1), ksh93(1), printcap(5), , clear(1), ngetty(8), procenv(1), stterm(1), xvfb-run(1), mailx(1), readline(3), hylafax-config(5f), faxaddmodem(8c), bashrun(1), st(1), bosh(1), obosh(1), ktelnet(1), readline5(3), readline6(3), ksh2020(1)