Commit e9cb8763b814ee7f8562503ddab7512374a26a06

Thomas de Grivel 2023-01-26T14:29:37

color verbose messages

diff --git a/share/shpkg/shpkg.subr b/share/shpkg/shpkg.subr
index 121c401..b04f5b8 100644
--- a/share/shpkg/shpkg.subr
+++ b/share/shpkg/shpkg.subr
@@ -54,17 +54,17 @@ export LDFLAGS="${LDFLAGS} -L${SHPKG_LIB_DIR}"
 export PKG_CONFIG_PATH="${SHPKG_LIB_DIR}/pkgconfig"
 
 puts() {
-    printf '\e[0;34m'
+    printf '\x1b[0;34m'
     echo -n "$@"
-    printf '\e[0m\n'
+    printf '\x1b[0m\n'
 }
 
 err() {
     R="$1"
     shift
-    printf '\e[0;31m' >&2
+    printf '\x1b[0;31m' >&2
     echo -n "$0:" error: "$@" >&2
-    printf '\e[0m\n' >&2
+    printf '\x1b[0m\n' >&2
     exit "$R"
 }