Replace frame title with out function

This commit is contained in:
Michael De Roover 2020-08-14 19:22:39 +02:00
parent 36c655cec0
commit fe071e82a6
Signed by: vim
GPG Key ID: 075496E232CE04CB
1 changed files with 2 additions and 3 deletions

5
cv
View File

@ -56,7 +56,6 @@ out(){
frame(){
case "$1" in
top) printf "╔══════════════════════════════════════════════════╗\n" ;;
title) printf "║ Statistic ║ Today ║ Yesterday ║\n" ;;
sep) printf "╟────────────────╫────────────────╫────────────────╢\n" ;;
up) printf "╠════════════════╦════════════════╦════════════════╣\n" ;;
down) printf "╚════════════════╩════════════════╩════════════════╝\n" ;;
@ -66,9 +65,9 @@ frame(){
}
result(){
frame top
title "Queried at: $date"
title "Queried at $date for $(get country)."
frame up
frame title
out Statistic Today Yesterday
frame sep
stats Total cases
getpm casesPerOneMillion