Move cursor to bottom in test mode

This commit is contained in:
Dylan 2016-03-26 14:13:02 +11:00
parent 70b59ac1ef
commit 51d773dc52

View file

@ -2792,6 +2792,16 @@ while [ "$1" ]; do
*) config_file="$2"; config="on"; getconfig ;;
esac
;;
--test)
info=(title underline distro kernel uptime packages shell resolution de wm theme icons cpu gpu memory font disk battery song localip publicip users birthday cols)
printinfo () {
for func in "${info[@]}"; do
info "${func^^}" $func
done
printf "%b%s" "\033[$(tput lines)H"
}
;;
--help) usage ;;
esac