Started work on converting from select menus to dialog.

This commit is contained in:
stormdragon2976@gmail.com 2018-08-09 21:09:46 -04:00
parent 5a0c024879
commit 1c823b1f01

View File

@ -12,6 +12,9 @@ export TEXTDOMAIN=fleacollar.sh
export TEXTDOMAINDIR=/usr/share/locale
. gettext.sh
# Settings to improve accessibility of dialog.
export DIALOGOPTS='--insecure --no-lines --visit-items'
# Variables
muttHome=~/.mutt
@ -31,6 +34,18 @@ check_dependancies()
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()
{
if ! [ -d "$muttHome" ]; then