From 51d773dc52380acf9c07610f379ddec728d2f7ea Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 26 Mar 2016 14:13:02 +1100 Subject: [PATCH] Move cursor to bottom in test mode --- neofetch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neofetch b/neofetch index 8bee9eed..344233a0 100755 --- a/neofetch +++ b/neofetch @@ -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