我的脚本执行如下操作:
while :;
clear
do_a_lot_of_output_here
sleep 1
done
Run Code Online (Sandbox Code Playgroud)
当我清除和输出时,是否有任何选项可以防止屏幕闪烁?我想像在watch命令中那样做(但它是用 写的C)。有什么建议吗?
clear | hexdump -C
00000000 1b 5b 48 1b 5b 32 4a |.[H.[2J|
00000007
Run Code Online (Sandbox Code Playgroud)
附注。我bash只用。
bash ×1