-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alt/meta-backspace is interpreted as esc + backspace #5
Comments
In Terminal.app, The M-BS combination is correctly recognized as |
@glguy Perhaps I was unclear. The observed behaviour is random. In like 95% of the input events everything is fine. What is Terminal.app? |
I just tested using the |
Terminal.app is the default terminal program on macOS. Using vty-demo in this program I get 100% success after a couple minutes of holding down M-BS. Knowing what environment you're testing this in will help with reproducing the problem. |
I am running all this on archlinux. Testing with different terminal emulators gives somewhat differing results:
|
Oh, and I also see |
I am rather certain that if I modified vty-demo to not exit on |
The encoding of |
I have observed on multiple (but random) times that
alt-backspace
exits my program without any trace of an error message, instead of it doing what the program is supposed to do on alt-backspace (which is not to halt). Had me confused, but, looking atThis makes a good amount of sense - if the input buffer for some reason contains only
\ESC
(part of a\ESC\DEL
) then the input sequence is interpreted as the sequence of\ESC
(and\DEL
once the next part is read). This depends on where the input is split up due to input-buffering internals, which of course is mildly random.(A plain
Esc
is treated by my program to exit cleanly, which explains my initial observation.)Does this diagnosis make sense so far?
The text was updated successfully, but these errors were encountered: