Skip to content

Commit 7a406c7

Browse files
committed
WIP: proposal for a way to configure colors that are more readable on 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
1 parent 2db598e commit 7a406c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/bash/sdkman-utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function __sdkman_echo {
7272
if [[ "$sdkman_colour_enable" == 'false' ]]; then
7373
echo -e "$2"
7474
else
75-
echo -e "\033[1;$1$2\033[0m"
75+
echo -e "\033[${sdkman_colour_style:-1};$1$2\033[0m"
7676
fi
7777
}
7878

@@ -100,6 +100,6 @@ function __sdkman_echo_confirm {
100100
if [[ "$sdkman_colour_enable" == 'false' ]]; then
101101
echo -n "$1"
102102
else
103-
echo -e -n "\033[1;33m$1\033[0m"
103+
echo -e -n "\033[${sdkman_colour_style:-1};33m$1\033[0m"
104104
fi
105105
}

0 commit comments

Comments
 (0)