System/Libraries/Stdio: Ugly hack to handle backspace for non-compliant output devices

This commit is contained in:
Alec Murphy
2025-09-20 22:48:55 -04:00
parent 51e54e89d5
commit 6e774d8641

View File

@@ -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');