Started work on converting from select menus to dialog.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user