如何停止用户输入在交互式终端窗口上显示?
这是脚本的示例:
while true; do
printf ""
done
现在,如果我在交互式终端上运行此脚本,它显然什么也没打印!
但是,在同一情况下,如果我也开始键入字符
和键
从我的键盘上键入,他们显然会在脚本交互式运行时在终端窗口上显示。
示例输出:
fasd^[[D^[[A^[[Cfsf
我想暂时停止用户输入在脚本仍在运行时显示。
谢谢您的任何帮助。
Here is an example of script:
while true; do
printf ""
done
Now if I run this script on a interactive terminal it obviously print nothing!
but in same case if I also start typing CHARACTERS
and KEYS
from my keyboard they will obviously show on terminal window while the script is running interactively.
Example output:
fasd^[[D^[[A^[[Cfsf
I want to temporarily stop user input to show while script is still running.
Thankyou, for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我的
In my piu-piu project I'm switching user input on and off like this: