ref: 9bc180134a6a2c2943f33f84a0d1b7aa9bf0072d
parent: 33f5d0fe3fd40b57f0a36e3832637446446768f4
author: phil9 <telephil9@gmail.com>
date: Thu Dec 23 06:21:48 EST 2021
prevent crash when receiving plumb event if a write has been initiated then we need to trash the input buffer instead of trying to continue. This leaves us in an almost good state but there are still cases where the screen would need a refresh.
--- a/os_plan9.c
+++ b/os_plan9.c
@@ -466,7 +466,8 @@
if (len == 0) {
/* TODO */
fprintf(stderr, "scr_escape_sequence: early end of escape sequence\n");
- exit(1);
+ trash_input_buf();
+ return 0;
}
switch (*p) {