From bbe9655cec18b47a1d26a9feb4f01cbc29cedc04 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 8 Aug 2019 01:29:02 -0400 Subject: [PATCH] Added --clear to dialog widgets. --- README.md | 2 +- notestorm | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d91c3ab..c9ae2b2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/notestorm b/notestorm index 003413b..f2ef9d0 100755 --- a/notestorm +++ b/notestorm @@ -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")" \