From 6e774d8641e25ae7f3e453557989f1da265672bb Mon Sep 17 00:00:00 2001 From: Alec Murphy Date: Sat, 20 Sep 2025 22:48:55 -0400 Subject: [PATCH] System/Libraries/Stdio: Ugly hack to handle backspace for non-compliant output devices --- System/Libraries/Stdio.HC | 2 ++ 1 file changed, 2 insertions(+) diff --git a/System/Libraries/Stdio.HC b/System/Libraries/Stdio.HC index 718cd12..6ba94e0 100644 --- a/System/Libraries/Stdio.HC +++ b/System/Libraries/Stdio.HC @@ -238,6 +238,8 @@ U0 @stdio_read_line(@shell* sh, U8* prompt, U8* str) if (pos > 0) { line[StrLen(line) - 1] = NULL; FifoU8Ins(sh->output, '\x8'); + FifoU8Ins(sh->output, ' '); + FifoU8Ins(sh->output, '\x8'); pos--; } else FifoU8Ins(sh->output, '\x7');