Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Fix issue where non \a delimited osc escapes would never exit

mintsuki b16d2649 6f4e92ed

Changed files
+3 -4
+3 -4
flanterm.c
···
switch (c) {
case 0x1b:
ctx->osc_escape = true;
-
break;
case '\a':
-
goto cleanup;
}
-
-
return;
cleanup:
ctx->osc_escape = false;
···
switch (c) {
case 0x1b:
ctx->osc_escape = true;
+
return;
case '\a':
+
default:
+
break;
}
cleanup:
ctx->osc_escape = false;