Use \33 instead of \e.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@127 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2002-01-01 19:54:22 +00:00
parent 68928ae520
commit a95ed6fc75
1 changed files with 4 additions and 4 deletions

View File

@ -110,18 +110,18 @@ void do_log2(struct sc_context *ctx, int type, const char *file,
if (do_color && !isatty(fileno(outf))) if (do_color && !isatty(fileno(outf)))
do_color = 0; do_color = 0;
if (do_color) { if (do_color) {
color_sfx = "\e[0m"; color_sfx = "\33[0m";
switch (type) { switch (type) {
case SC_LOG_TYPE_ERROR: case SC_LOG_TYPE_ERROR:
color_pfx = "\e[01;31m"; color_pfx = "\33[01;31m";
break; break;
#if 0 #if 0
case SC_LOG_TYPE_NORMAL: case SC_LOG_TYPE_NORMAL:
color_pfx = "\e[01;33m"; color_pfx = "\33[01;33m";
break; break;
#endif #endif
case SC_LOG_TYPE_DEBUG: case SC_LOG_TYPE_DEBUG:
color_pfx = "\e[00;32m"; color_pfx = "\33[00;32m";
break; break;
} }
} }