From 4bedbfbf1979b6636a5e7b5c1f6477e1e26ba6f3 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:49:37 +0900 Subject: [PATCH] Move menu strings outside of table --- dztui.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dztui.sh b/dztui.sh index 2de1e54..8535d80 100644 --- a/dztui.sh +++ b/dztui.sh @@ -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