From e0531cc682ac3a60293748172b05672d34c67b84 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Mon, 2 Jul 2018 11:42:01 +0100 Subject: [PATCH] Use standard escape sequences --- tdutils/td/utils/logging.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tdutils/td/utils/logging.h b/tdutils/td/utils/logging.h index 52bf843f..24512d4d 100644 --- a/tdutils/td/utils/logging.h +++ b/tdutils/td/utils/logging.h @@ -151,12 +151,12 @@ void set_log_fatal_error_callback(OnFatalErrorCallback callback); [[noreturn]] void process_fatal_error(CSlice message); -#define TC_RED "\e[1;31m" -#define TC_BLUE "\e[1;34m" -#define TC_CYAN "\e[1;36m" -#define TC_GREEN "\e[1;32m" -#define TC_YELLOW "\e[1;33m" -#define TC_EMPTY "\e[0m" +#define TC_RED "\x1b[1;31m" +#define TC_BLUE "\x1b[1;34m" +#define TC_CYAN "\x1b[1;36m" +#define TC_GREEN "\x1b[1;32m" +#define TC_YELLOW "\x1b[1;33m" +#define TC_EMPTY "\x1b[0m" class TsCerr { public: