diff options
| author | Tim Allen <screwtape@froup.com> | 2020-11-24 19:14:04 +1100 |
|---|---|---|
| committer | Tim Allen <screwtape@froup.com> | 2021-01-15 18:49:53 +1100 |
| commit | a7ed1f03fbe8a65a5ab33fbbb5f8a4e5a475a7a2 (patch) | |
| tree | 2dd5e2f123646d1f7991b8f87e20a58d567300f4 /rc | |
| parent | df7b33bc7b9da897d1d0127b54ae1e629d2334ff (diff) | |
Distinguish <c-h> and Backspace on terminals where that is possible.
Different terminals send different codes to indicate backspace, usually one of
\x08 or \x7f, so Kakoune blindly treated both as backspace. However, a given
terminal is only likely to use one of those, and mnemonic control codes like
<c-h> are a precious resource so we should endeavour to keep backspace and
<c-h> separate when we can. Luckily, termios tells us what code our terminal is
currently using, and Kakoune already reads the information at startup, so we can
just use that information.
Thanks to @krobelus for figuring out the C++ syntax required.
Fixes #3863.
Diffstat (limited to 'rc')
0 files changed, 0 insertions, 0 deletions
