mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.9k stars 713 forks source link

[BUG] Some control characters cannot be entered, even using raw insert #5232

Open alois31 opened 3 weeks ago

alois31 commented 3 weeks ago

Version of Kakoune

v2024.05.18

Reproducer

Try to enter any of the following control characters using raw insert (Ctrl-V):

Outcome

The control characters cannot be entered. Specifically, the following happens:

Expectations

All control characters can be inserted using the raw insert functionality.

Additional information

The issue has been reproduced on NixOS unstable using the Konsole and xterm terminals. On the latter, it is additionally impossible to enter backspace (Ctrl-H).

Relatedly, keys or key combinations that send escape sequences (like arrows, function keys or using Alt) do not work with raw insert mode either. Maybe this is less critical since the sequences could still be entered manually, but the root cause might be the same.