1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-14 23:35:24 +02:00
tldr/pages.zh/common/stty.md
Yi Liu 653919fa00
pages.zh/common/*: update Chinese translation (#15962)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-03-26 06:38:15 +02:00

606 B

stty

设置终端设备接口的选项。 更多信息:https://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.html.

  • 显示当前终端的所有设置:

stty {{[-a|--all]}}

  • 设置行数或列数:

stty {{rows|cols}} {{数量}}

  • 获取设备的实际传输速度:

stty {{[-F|--file]}} {{路径/到/设备文件}} speed

  • 重置所有模式为当前终端的合理默认值:

stty sane

  • 在原始模式和普通模式之间切换:

stty {{raw|cooked}}

  • 关闭或开启字符回显:

stty {{-echo|echo}}

  • 显示帮助信息:

stty --help