1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 05:12:36 +01:00

Move menu strings outside of table

This commit is contained in:
aclist 2022-01-11 18:49:37 +09:00 committed by GitHub
parent 0b74605b4b
commit 4bedbfbf19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,10 +94,6 @@ list_mods(){
columnize(){
column -t -s$'\t' -o$" $separator "
printf "f$separator Launch favorite\n"
printf "l$separator List installed mods\n"
printf "r$separator Refresh\n"
printf "q$separator Quit\n"
}
test_fav(){
if [[ -n $fav ]]; then
@ -235,6 +231,18 @@ init_table(){
get_sorted_id(){
sorted_id=$(echo -e "${tabled[$sel]}" | awk -F'\t' '{print $5}')
}
menu(){
printf "\n"
printf "f$separator Launch favorite\n"
printf "l$separator List installed mods\n"
printf "r$separator Refresh\n"
printf "q$separator Quit\n"
printf "\n"
}
exit_msg(){
printf "DZTUI $version\n"
exit
}
main(){
checks
init_table