diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-12 07:33:04 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-12 07:33:04 +0000 |
| commit | 68d763add972c346410c6b9908b516a2ea411341 (patch) | |
| tree | bfe2c512cb295f6bf2b2bf7ef525f5f73e167aad /src/line/input.cc | |
| parent | f23f6b9ea8204a63d17baa712db06aac1ea1c3ad (diff) | |
fix backspace
Diffstat (limited to 'src/line/input.cc')
| -rw-r--r-- | src/line/input.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/line/input.cc b/src/line/input.cc index 9c593f7..cc5a62b 100644 --- a/src/line/input.cc +++ b/src/line/input.cc @@ -69,6 +69,13 @@ string readline() move_cursor(seq[1]); } + + // backspace + else if (c == '\b' || c == '\x7f') + { + cursor_input_char(c); + print_override(line_buffer); + } } // normal char |
