C11 compatibility fixes

This commit is contained in:
czapek1337 2022-10-29 03:31:56 +02:00
parent 54eb19672b
commit ed9f3ffd3f
1 changed files with 2 additions and 2 deletions

4
term.c
View File

@ -718,7 +718,7 @@ is_csi:
case ')':
ctx->g_select = c - '\'';
break;
case '\e':
case 0x1b:
if (ctx->in_bootloader == true) {
ctx->raw_putchar(ctx, c);
}
@ -800,7 +800,7 @@ static void term_putchar(struct term_context *ctx, uint8_t c) {
case 0x9b:
ctx->csi = true;
// FALLTHRU
case '\e':
case 0x1b:
ctx->escape_offset = 0;
ctx->escape = true;
return;