Skip to content

Commit

Permalink
Fix unrecognized \e escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Nov 28, 2024
1 parent 9bdf7fe commit fee0ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/termcolors.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int cvfprintf(FILE* stream, const char* fmt, va_list vargs)
char* end = start + len + 1;
while (p < end-1) {
char* cur = p;
if (*p == '\e' && end-p > 2 && *(p+1) == '[') {
if (*p == '\x1b' && end-p > 2 && *(p+1) == '[') {
p+=2;
if (*p == 'm') {
#ifdef _WIN32
Expand Down

0 comments on commit fee0ca0

Please sign in to comment.