【发布时间】:2011-01-19 01:59:56
【问题描述】:
我在无限循环中有这段代码:
read -a output
echo ${output[@]}
当代码运行时,屏幕可能如下所示:
Hello, World # line where value was given to output (I want this gone)
Hello, World # echoed output
[] # <-- cursor waiting for next input
有没有办法清除用户输入值的行?就像完全摆脱它一样(不仅仅是将行更改为仍然会在所需输出中留下空白的空白)?
【问题讨论】: