Started work on converting from select menus to dialog.
This commit is contained in:
parent
5a0c024879
commit
1c823b1f01
@ -12,6 +12,9 @@ export TEXTDOMAIN=fleacollar.sh
|
|||||||
export TEXTDOMAINDIR=/usr/share/locale
|
export TEXTDOMAINDIR=/usr/share/locale
|
||||||
. gettext.sh
|
. gettext.sh
|
||||||
|
|
||||||
|
# Settings to improve accessibility of dialog.
|
||||||
|
export DIALOGOPTS='--insecure --no-lines --visit-items'
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
muttHome=~/.mutt
|
muttHome=~/.mutt
|
||||||
|
|
||||||
@ -31,6 +34,18 @@ check_dependancies()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menulist() {
|
||||||
|
# Args: minimum group 2, multiples of 2, "tag" "choice"
|
||||||
|
# returns: selected tag
|
||||||
|
local menuList
|
||||||
|
ifs="$IFS"
|
||||||
|
IFS=$'\n'
|
||||||
|
dialog --backtitle "$(gettext "Use the up and down arrow keys to find the option you want, then press enter to select it.")" \
|
||||||
|
--no-tags \
|
||||||
|
--menu "$(gettext "Please select one")" 0 0 0 $@ --stdout
|
||||||
|
IFS="$ifs"
|
||||||
|
}
|
||||||
|
|
||||||
initialize_directory()
|
initialize_directory()
|
||||||
{
|
{
|
||||||
if ! [ -d "$muttHome" ]; then
|
if ! [ -d "$muttHome" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user