From 0eea7d052eaf7e4a5bf204f3edb412bc16589dd6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 02:05:07 +0100 Subject: [PATCH] fix --- shell/shell.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/shell.sh b/shell/shell.sh index 189fd1b..c25ab55 100644 --- a/shell/shell.sh +++ b/shell/shell.sh @@ -7,10 +7,11 @@ shell_color() { # shellcheck disable=SC2154 case "${SH}" in "bash") - printf "\e[0" + printf "\x01\e[0" if [ -n "${code}" ]; then printf "%s" ";${code}" fi + printf "m\x02" ;; *) printf "\033[" @@ -19,9 +20,9 @@ shell_color() { else printf "0" fi + printf "m" ;; esac - printf "m" } SH_BROWN="$(shell_color 33)" SH_CYAN="$(shell_color 36)"