stty
stty
修改终端命令行的相关设置
补充说明
stty命令 修改终端命令行的相关设置。
语法
|
|
选项
|
|
参数
终端设置:指定终端命令行的设置选项。
实例
在命令行下,禁止输出大写的方法:
|
|
在命令行下禁止输出小写:
|
|
打印出终端的行数和列数:
|
|
改变Ctrl+D的方法:
|
|
系统默认是Ctrl+D来表示文件的结束,而通过这种方法,可以改变!
屏蔽显示:
|
|
测试方法:
|
|
忽略回车符:
|
|
定时输入:
|
|
更简单的方法就是利用read命令的-t
选项:
|
|
- 原文作者:lex
- 原文链接:https://blog.mineor.xyz/posts/linux%E5%91%BD%E4%BB%A4/stty/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。