-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support "alt+enter" sending \e\r
#2498
Comments
@Tyriar I would like to take this. |
@kumaran-14 sure. On caps and shift enter, we want to support what other terminals support, I'm not sure what they are meant to do personally? |
I use these key combinations for zsh-autosuggestions specific commands. But it is true that not all terminals implement this. I will implement alt-enter only. |
@Tyriar I've looked at the #2364 pr thread.
Is these along the lines of what you had in mind? |
@kumaran-14 it needs another decset private mode so it only is enabled when the mode is active, see #2364 (review) @jerch is this right? Is it this one? 🤔
|
@Tyriar Could you explain a bit more. How would I go about implementing a new private mode and handle key signals based on this mode? |
@Tyriar Hmm not sure about 1039 or 1036. I think we always use Alt, then 1039 should do. |
@jerch If I add a new DECSET private mode in |
@kumaran-14 Well, For DECSET 1039 I think we want it to send the leading ESC for any key+Alt combination, while for DECRST 1039 (reset) we should go with sending the key only (kinda ignoring the pressed Alt key, note that xterm sends in reset mode the 8bit variant of the key instead). Furthermore we should make DECSET 1039 being set by default. There is one more obstacle to take care of - under OSX the Alt (Meta?) might be remapped (see About the 8bit key mode: We dont have that anywhere and it was no issue so far. I would not bother with it, as nowadays ppl dont know much about it and would never use it. Also it makes less sense in an unicode env. (I see only one valid use case for it - input of C1 chars. But those are somewhat ancient too, ppl again would not use it.) |
I didn't see this mentioned: The Fish shell interprets Alt+Enter to enter multi-line mode. Of the terminals I've tested, it works on gnome-terminal, Konsole, and DomTerm - but not xterm (with what I believe are default settings). |
Reminder issue coming from #2364.
The text was updated successfully, but these errors were encountered: