Skip to content

Commit fee0ca0

Browse files
committed
Fix unrecognized \e escape sequence
1 parent 9bdf7fe commit fee0ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/termcolors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int cvfprintf(FILE* stream, const char* fmt, va_list vargs)
182182
char* end = start + len + 1;
183183
while (p < end-1) {
184184
char* cur = p;
185-
if (*p == '\e' && end-p > 2 && *(p+1) == '[') {
185+
if (*p == '\x1b' && end-p > 2 && *(p+1) == '[') {
186186
p+=2;
187187
if (*p == 'm') {
188188
#ifdef _WIN32

0 commit comments

Comments
 (0)