Force destructive backspace when using local echo

Only takes effect in normal output mode.
This commit is contained in:
Martin Lund 2024-05-14 23:20:38 +02:00
parent 8f45d6f688
commit 5b5248929e

View file

@ -188,6 +188,12 @@ static void optional_local_echo(char c)
print(c);
if ((option.output_mode == OUTPUT_MODE_NORMAL) && (c == 127))
{
// Force destructive backspace
printf("\b \b");
}
if (option.log)
{
log_putc(c);