:: commit fa5fa057bd7b93fba929e476332ab4c012dfe418

mintsuki <mintsuki@protonmail.com> — 2021-09-13 07:49

parents: 05eb70e9f0

term: Do not parse escape-abort characters when not in runtime mode

diff --git a/stage23/lib/term.s2.c b/stage23/lib/term.s2.c
index 2a235191..fc87bbeb 100644
--- a/stage23/lib/term.s2.c
+++ b/stage23/lib/term.s2.c
@@ -823,7 +823,7 @@ static uint8_t dec_special_to_cp437(uint8_t c) {
 }
 
 void term_putchar(uint8_t c) {
-    if (discard_next || c == 0x18 || c == 0x1a) {
+    if (discard_next || (term_runtime == true && (c == 0x18 || c == 0x1a))) {
         discard_next = false;
         escape = false;
         csi = false;
tab: 248 wrap: offon