mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Force destructive backspace when using local echo
Only takes effect in normal output mode.
This commit is contained in:
parent
8f45d6f688
commit
5b5248929e
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue