aboutsummaryrefslogtreecommitdiff
path: root/slave.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-03 05:52:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-03 05:52:52 +0000
commit2f679694a5b6bcd79ccc913b0e51677226432dc7 (patch)
tree879a5bbe7d076f55fe8dde7c8772ff74f38de4f4 /slave.c
parentconfig: clean up (diff)
parentReplace non-portable "\e" escape in string literals with "\033" (diff)
Merge branch 'e-escape' into master
Diffstat (limited to 'slave.c')
-rw-r--r--slave.c8
1 files changed, 4 insertions, 4 deletions
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;
}