From 11a1d99da732cad13995dcbfc04b6559b5255d01 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sun, 2 Aug 2020 23:54:04 +0100 Subject: Replace non-portable "\e" escape in string literals with "\033" --- slave.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'slave.c') diff --git a/slave.c b/slave.c index ed0f94be..cb6a2f27 100644 --- a/slave.c +++ b/slave.c @@ -73,19 +73,19 @@ static enum user_notification_ret_t emit_one_notification(int fd, const struct user_notification *notif) { const char *prefix = NULL; - const char *postfix = "\e[m\n"; + const char *postfix = "\033[m\n"; switch (notif->kind) { case USER_NOTIFICATION_DEPRECATED: - prefix = "\e[33;1mdeprecated\e[39;21m: "; + prefix = "\033[33;1mdeprecated\033[39;21m: "; break; case USER_NOTIFICATION_WARNING: - prefix = "\e[33;1mwarning\e[39;21m: "; + prefix = "\033[33;1mwarning\033[39;21m: "; break; case USER_NOTIFICATION_ERROR: - prefix = "\e[31;1merror\e[39;21m: "; + prefix = "\033[31;1merror\033[39;21m: "; break; } -- cgit v1.3