From 296185a728c5729a2e1e41266a95006e016387d4 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 21 Jan 2022 05:43:51 +0900 Subject: [PATCH] Hide cursor to prettify log output --- dztui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dztui.sh b/dztui.sh index 6be10a9..fdcde3e 100644 --- a/dztui.sh +++ b/dztui.sh @@ -267,9 +267,11 @@ query_api(){ fi } init_table(){ - printf "\n[INFO] Polling servers. Please wait.\n" + tput civis + printf "[INFO] Polling servers. Please wait.\r" query_api readarray -t tabled <<< $(parse_json <<< $response) + tput cnorm tput cuu1 tput el table | columnize