Added --clear to dialog widgets.
This commit is contained in:
@@ -14,4 +14,4 @@ In its simplest form, just call notestorm with no arguments. You can use all fea
|
||||
|
||||
## Arguments
|
||||
|
||||
- -n --new: Add a new note without bringing up the user interface.
|
||||
To get a list of arguments available in notestorm call it with the -h or --help flag.
|
||||
|
||||
@@ -54,7 +54,7 @@ inputbox() {
|
||||
# Returns: text entered by the user
|
||||
# Args 1, Instructions for box.
|
||||
# args: 2 initial text (optional)
|
||||
dialog --backtitle "$(gettext "Enter text and press enter.")" \
|
||||
dialog --clear --backtitle "$(gettext "Enter text and press enter.")" \
|
||||
--inputbox "$1" 0 0 "$2" --stdout
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ yesno() {
|
||||
# Args: Question to user.
|
||||
# Called in if $(yesno) == "Yes"
|
||||
# Or variable=$(yesno)
|
||||
dialog --backtitle "$(gettext "Press 'Enter' for \"yes\" or 'Escape' for \"no\".")" --yesno "$*" 10 80 --stdout
|
||||
dialog --clear --backtitle "$(gettext "Press 'Enter' for \"yes\" or 'Escape' for \"no\".")" --yesno "$*" 10 80 --stdout
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "Yes"
|
||||
else
|
||||
@@ -75,6 +75,7 @@ menulist() {
|
||||
# Args: Tag, description.
|
||||
# returns: selected tag
|
||||
dialog --backtitle "$(gettext "Use the up and down arrow keys to find the option you want, then press enter to select it.")" \
|
||||
--clear \
|
||||
--cancel-label "$(gettext "Exit")" \
|
||||
--extra-button \
|
||||
--extra-label "$(gettext "New")" \
|
||||
|
||||
Reference in New Issue
Block a user