Skip to content

Commit

Permalink
WIP: proposal for a way to configure colors that are more readable on…
Browse files Browse the repository at this point in the history
… light terminals, using a config variable named 'sdkman_colour_style' defaulting to 1 and that when set to 2 dimmer colors suitable to white/light colored terminals
  • Loading branch information
fditolla committed Aug 25, 2017
1 parent 2db598e commit 7a406c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/bash/sdkman-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function __sdkman_echo {
if [[ "$sdkman_colour_enable" == 'false' ]]; then
echo -e "$2"
else
echo -e "\033[1;$1$2\033[0m"
echo -e "\033[${sdkman_colour_style:-1};$1$2\033[0m"
fi
}

Expand Down Expand Up @@ -100,6 +100,6 @@ function __sdkman_echo_confirm {
if [[ "$sdkman_colour_enable" == 'false' ]]; then
echo -n "$1"
else
echo -e -n "\033[1;33m$1\033[0m"
echo -e -n "\033[${sdkman_colour_style:-1};33m$1\033[0m"
fi
}

0 comments on commit 7a406c7

Please sign in to comment.