2019-03-15 03:45:19 +00:00
|
|
|
# stty
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 设置终端设备接口的选项。
|
2021-04-01 16:54:26 +01:00
|
|
|
> 更多信息: <https://www.gnu.org/software/coreutils/stty>.
|
2019-03-15 03:45:19 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示当前终端的所有设置:
|
2019-03-15 03:45:19 +00:00
|
|
|
|
|
|
|
`stty -a`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 设置行数:
|
2019-03-15 03:45:19 +00:00
|
|
|
|
|
|
|
`stty rows {{行数}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 设置列数:
|
2019-03-15 03:45:19 +00:00
|
|
|
|
|
|
|
`stty cols {{列数}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 获取设备的实际传输速度:
|
2019-03-15 03:45:19 +00:00
|
|
|
|
2021-05-27 23:58:42 +01:00
|
|
|
`stty -F {{目标 / 文件夹 / 驱动设备文件}} speed`
|
2019-03-15 03:45:19 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 将当前终端的所有模式重置为合理值:
|
2019-03-15 03:45:19 +00:00
|
|
|
|
|
|
|
`stty sane`
|