mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
Move menu strings outside of table
This commit is contained in:
parent
0b74605b4b
commit
4bedbfbf19
1 changed files with 12 additions and 4 deletions
16
dztui.sh
16
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
|
||||
|
|
Loading…
Reference in a new issue