]> arthur.barton.de Git - ax-unix.git/commitdiff
ax-common.sh: Use \NNN instead of \xNN, which is portable
authorAlexander Barton <alex@barton.de>
Fri, 28 Aug 2015 14:51:44 +0000 (16:51 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 28 Aug 2015 14:51:44 +0000 (16:51 +0200)
lib/ax/ax-common.sh

index f060e4c9460fd95030b923acafc898610c778b8a..fbeb5793c05df9f8ab7706b32f2a570c85cd6f60 100644 (file)
@@ -23,9 +23,9 @@ ax_msg1() {
                *)      c="0";
        esac
        # print colored word(s):
-       printf "\x1b[0;${c}m"
+       printf "\033[0;${c}m"
        /bin/echo -n "${1}"
-       printf "\x1b[0m "
+       printf "\033[0m "
        shift
        # print remaining word(s) and trailing newline:
        echo "${*}"