【安裝】
$apt-get install dialog
【程式】(取自 參考#1 )
#!/bin/bash
{ for I in 10 20 30 40 50 60 70 80 90 \
80 70 60 50 40 30 20 10 0; do
echo $I
sleep 1
done
echo; } | dialog --guage "A guage demo" 6 70 0
【執行】
【參考】
- Linux Apprentice: Improve Bash Shell Scripts Using Dialog
http://www.linuxjournal.com/article/2460 - Bash Shell Script可以做到光棒上下移動選單的功能嗎 ?
http://forum.icst.org.tw/phpbb/viewtopic.php?f=44&t=12819

