我正在尝试添加某种回声命令,使我的菜单在准备好用户输入时发出哔哔声或铃声。我很感激任何可能的帮助,谢谢!
loop=y
while [ "$loop" = y ]
do
clear
tput cup 3 12; echo "Soup Menu"
tput cup 4 12; echo "=========="
tput cup 6 9; echo "(t)omato"
tput cup 7 9; echo "(b)ean"
tput cup 8 9; echo "(s)quash"
tput cup 10 9; echo "Select a soup...(q) to quit"
tput cup 10 19;
read choice || continue
done
答案 0 :(得分:0)
鉴于这个例子,那将是
tput bel
terminfo(5)
手册说明了tput
将使用的长名称(贝尔)和短名称(bel):
bell bel bl audible signal
(bell) (P)