mirror of
https://github.com/aclist/dztui.git
synced 2025-06-11 19:48:58 +02:00
Hide cursor to prettify log output
This commit is contained in:
parent
407ac4b87f
commit
296185a728
1 changed files with 3 additions and 1 deletions
4
dztui.sh
4
dztui.sh
|
@ -267,9 +267,11 @@ query_api(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
init_table(){
|
init_table(){
|
||||||
printf "\n[INFO] Polling servers. Please wait.\n"
|
tput civis
|
||||||
|
printf "[INFO] Polling servers. Please wait.\r"
|
||||||
query_api
|
query_api
|
||||||
readarray -t tabled <<< $(parse_json <<< $response)
|
readarray -t tabled <<< $(parse_json <<< $response)
|
||||||
|
tput cnorm
|
||||||
tput cuu1
|
tput cuu1
|
||||||
tput el
|
tput el
|
||||||
table | columnize
|
table | columnize
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue