mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 03:06:56 +02:00
Move menu strings outside of table
This commit is contained in:
parent
0b74605b4b
commit
4bedbfbf19
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 New Issue
Block a user