diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-03 05:52:52 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-03 05:52:52 +0000 |
| commit | 2f679694a5b6bcd79ccc913b0e51677226432dc7 (patch) | |
| tree | 879a5bbe7d076f55fe8dde7c8772ff74f38de4f4 /slave.c | |
| parent | config: clean up (diff) | |
| parent | Replace 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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |
