Skip to content

Commit

Permalink
Update functions.sh: Add dU_() for dialog underline
Browse files Browse the repository at this point in the history
And use DIALOG_NC instead of DIALOG_NORMAL to be consistent with other functions
  • Loading branch information
EricClaeys authored Feb 5, 2025
1 parent b298b60 commit d6ea0ee
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ function wW_() { echo -e "${wWARNING}${1}${wNC}" ; }
function wE_() { echo -e "${wERROR}${1}${wNC}" ; }
function wD_() { echo -e "${wDEBUG}DEBUG: ${1}${wNC}" ; }
# If the output may go to the "dialog" command (no "-e"):
function dO_() { echo "${DIALOG_GREEN}${1}${DIALOG_NORMAL}" ; }
function dW_() { echo "${DIALOG_RED}${1}${DIALOG_NORMAL}" ; } # No DIALOG_YELLOW
function dE_() { echo "${DIALOG_RED}${1}${DIALOG_NORMAL}" ; }
function dD_() { echo "${DIALOG_BOLD}DEBUG: ${1}${DIALOG_NORMAL}" ; }
function dO_() { echo "${DIALOG_GREEN}${1}${DIALOG_NC}" ; }
function dW_() { echo "${DIALOG_YELLOW}${1}${DIALOG_NC}" ; }
function dE_() { echo "${DIALOG_RED}${1}${DIALOG_NC}" ; }
function dD_() { echo "${DIALOG_DEBUG}DEBUG: ${1}${DIALOG_NC}" ; }
function dU_() { echo "${DIALOG_UNDERLINE}${1}${DIALOG_NC}" ; }


##### Start and Stop Allsky
Expand Down

0 comments on commit d6ea0ee

Please sign in to comment.