1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-10 22:33:02 +02:00

Hide cursor to prettify log output

This commit is contained in:
aclist 2022-01-21 05:43:51 +09:00 committed by GitHub
parent 407ac4b87f
commit 296185a728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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