From 4527386c231cae18e1ca0a99987418d78e613275 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 1 May 2016 00:04:39 -0400 Subject: utility: version info: replace the non-portable \e with the portable \x1b. --- src/perk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/perk.c') diff --git a/src/perk.c b/src/perk.c index 9c311b4..b19ee0c 100644 --- a/src/perk.c +++ b/src/perk.c @@ -20,9 +20,9 @@ static const char vermsg[] = "%s%s%s (git://midipix.org/perk): " "[commit reference: %s%s%s]\n"; static const char * const pe_ver_color[6] = { - "\e[1m\e[35m","\e[0m", - "\e[1m\e[32m","\e[0m", - "\e[1m\e[34m","\e[0m" + "\x1b[1m\x1b[35m","\x1b[0m", + "\x1b[1m\x1b[32m","\x1b[0m", + "\x1b[1m\x1b[34m","\x1b[0m" }; static const char * const pe_ver_plain[6] = { -- cgit v1.2.3