2019-03-15 11:45:19 +08:00
|
|
|
# stty
|
|
|
|
|
2021-08-02 04:41:09 -04:00
|
|
|
> 设置终端设备接口的选项。
|
2021-08-31 09:13:49 +02:00
|
|
|
> 更多信息:<https://www.gnu.org/software/coreutils/stty>.
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2021-08-02 04:41:09 -04:00
|
|
|
- 显示当前终端的所有设置:
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2to3, rubocop, runsv, rubocop, runsv, runsvchdir, runsvdir, ssh-add, stty, sv, tar, touch: fix Chinese translation. (#14629)
2024-11-06 04:49:42 -05:00
|
|
|
`stty --all`
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2to3, rubocop, runsv, rubocop, runsv, runsvchdir, runsvdir, ssh-add, stty, sv, tar, touch: fix Chinese translation. (#14629)
2024-11-06 04:49:42 -05:00
|
|
|
- 设置行数或列数:
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2to3, rubocop, runsv, rubocop, runsv, runsvchdir, runsvdir, ssh-add, stty, sv, tar, touch: fix Chinese translation. (#14629)
2024-11-06 04:49:42 -05:00
|
|
|
`stty {{行数|列数}} {{数量}}`
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2021-08-02 04:41:09 -04:00
|
|
|
- 获取设备的实际传输速度:
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2to3, rubocop, runsv, rubocop, runsv, runsvchdir, runsvdir, ssh-add, stty, sv, tar, touch: fix Chinese translation. (#14629)
2024-11-06 04:49:42 -05:00
|
|
|
`stty --file {{路径/到/驱动设备文件}} speed`
|
2019-03-15 11:45:19 +08:00
|
|
|
|
2to3, rubocop, runsv, rubocop, runsv, runsvchdir, runsvdir, ssh-add, stty, sv, tar, touch: fix Chinese translation. (#14629)
2024-11-06 04:49:42 -05:00
|
|
|
- 重置所有模式为当前终端的合理默认值:
|
2019-03-15 11:45:19 +08:00
|
|
|
|
|
|
|
`stty sane`
|