mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-10 13:09:55 +02:00
System/Libraries/Stdio: Ugly hack to handle backspace for non-compliant output devices
This commit is contained in:
@@ -238,6 +238,8 @@ U0 @stdio_read_line(@shell* sh, U8* prompt, U8* str)
|
|||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
line[StrLen(line) - 1] = NULL;
|
line[StrLen(line) - 1] = NULL;
|
||||||
FifoU8Ins(sh->output, '\x8');
|
FifoU8Ins(sh->output, '\x8');
|
||||||
|
FifoU8Ins(sh->output, ' ');
|
||||||
|
FifoU8Ins(sh->output, '\x8');
|
||||||
pos--;
|
pos--;
|
||||||
} else
|
} else
|
||||||
FifoU8Ins(sh->output, '\x7');
|
FifoU8Ins(sh->output, '\x7');
|
||||||
|
|||||||
Reference in New Issue
Block a user