aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-10-12 11:24:28 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-10-12 11:24:28 +0200
commit47324d02968318fd397c64d4ead00ee6780b13af (patch)
treebf58f587b21f384ab4ddb702d575072eb6f49e8e
parentffc88fc5ba638f95648ee2b7599fc72b2a0ffd77 (diff)
downloadembedlog-47324d02968318fd397c64d4ead00ee6780b13af.tar.gz
embedlog-47324d02968318fd397c64d4ead00ee6780b13af.tar.bz2
embedlog-47324d02968318fd397c64d4ead00ee6780b13af.zip
change \e to \033 in tests
-rw-r--r--tst/test-el-print.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/tst/test-el-print.c b/tst/test-el-print.c
index 2af6c92..3c98572 100644
--- a/tst/test-el-print.c
+++ b/tst/test-el-print.c
@@ -126,28 +126,28 @@ static int print_check(void)
#if ENABLE_COLORS_EXTENDED
static const char *color[] =
{
- "\e[91m", /* fatal light red */
- "\e[31m", /* alert red */
- "\e[95m", /* critical light magenta */
- "\e[35m", /* error magenta */
- "\e[93m", /* warning light yellow */
- "\e[92m", /* notice light green */
- "\e[32m", /* information green */
- "\e[34m", /* debug blue */
- "\e[0m" /* remove all formats */
+ "\033[91m", /* fatal light red */
+ "\033[31m", /* alert red */
+ "\033[95m", /* critical light magenta */
+ "\033[35m", /* error magenta */
+ "\033[93m", /* warning light yellow */
+ "\033[92m", /* notice light green */
+ "\033[32m", /* information green */
+ "\033[34m", /* debug blue */
+ "\033[0m" /* remove all formats */
};
#else
static const char *color[] =
{
- "\e[31m", /* fatal light red */
- "\e[31m", /* alert red */
- "\e[35m", /* critical light magenta */
- "\e[35m", /* error magenta */
- "\e[33m", /* warning light yellow */
- "\e[32m", /* notice light green */
- "\e[32m", /* information green */
- "\e[34m", /* debug blue */
- "\e[0m" /* remove all formats */
+ "\033[31m", /* fatal light red */
+ "\033[31m", /* alert red */
+ "\033[35m", /* critical light magenta */
+ "\033[35m", /* error magenta */
+ "\033[33m", /* warning light yellow */
+ "\033[32m", /* notice light green */
+ "\033[32m", /* information green */
+ "\033[34m", /* debug blue */
+ "\033[0m" /* remove all formats */
};
#endif
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/