mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +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(){
|
columnize(){
|
||||||
column -t -s$'\t' -o$" $separator "
|
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(){
|
test_fav(){
|
||||||
if [[ -n $fav ]]; then
|
if [[ -n $fav ]]; then
|
||||||
|
@ -235,6 +231,18 @@ init_table(){
|
||||||
get_sorted_id(){
|
get_sorted_id(){
|
||||||
sorted_id=$(echo -e "${tabled[$sel]}" | awk -F'\t' '{print $5}')
|
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(){
|
main(){
|
||||||
checks
|
checks
|
||||||
init_table
|
init_table
|
||||||
|
|
Loading…
Reference in a new issue