1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 05:35:25 +02:00
tldr/pages.zh/common/stty.md

33 lines
606 B
Markdown
Raw Normal View History

2019-03-15 11:45:19 +08:00
# stty
> 设置终端设备接口的选项。
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.html>.
2019-03-15 11:45:19 +08:00
- 显示当前终端的所有设置:
2019-03-15 11:45:19 +08:00
`stty {{[-a|--all]}}`
2019-03-15 11:45:19 +08:00
- 设置行数或列数:
2019-03-15 11:45:19 +08:00
`stty {{rows|cols}} {{数量}}`
2019-03-15 11:45:19 +08:00
- 获取设备的实际传输速度:
2019-03-15 11:45:19 +08:00
`stty {{[-F|--file]}} {{路径/到/设备文件}} speed`
2019-03-15 11:45:19 +08:00
- 重置所有模式为当前终端的合理默认值:
2019-03-15 11:45:19 +08:00
`stty sane`
- 在原始模式和普通模式之间切换:
`stty {{raw|cooked}}`
- 关闭或开启字符回显:
`stty {{-echo|echo}}`
- 显示帮助信息:
`stty --help`