Emacs M-S-RET (Alt-Shift-Enter) key not working inside the terminal #12468

Closed
opened 2026-01-31 03:16:32 +00:00 by claunia · 3 comments
Owner

Originally created by @jiucenglou on GitHub (Feb 9, 2021).

Environment

Windows build number: [Version 10.0.19042.789]
Windows Terminal version (if applicable): 1.5.10271.0

Any other software?
Ubuntu-18.04
emacs-nox inside Ubuntu-18.04

Steps to reproduce

run emacs blank.org -q
press <Alt>-<Shift>-<Enter>
press <F1> k <Alt>-<Shift>-<Enter>

Expected behavior

press <Alt>-<Shift>-<Enter> should fills * TODO in the Emacs window
press <F1> k <Alt>-<Shift>-<Enter> should shows info about <M-S-RET> in the Emacs buffer

Actual behavior

press <Alt>-<Shift>-<Enter> fills * in the Emacs window
press <F1> k <Alt>-<Shift>-<Enter> shows info about <M-RET> in the Emacs buffer

settings.json

        // 2021/1-28: for Emacs
        // { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        // { "command": "paste", "keys": "ctrl+v" },
        { "command": "unbound", "keys": "alt+left" },
        { "command": "unbound", "keys": "alt+right" },
        { "command": "unbound", "keys": "alt+up" },
        { "command": "unbound", "keys": "alt+down" },
        { "command": "unbound", "keys": "alt+enter" },
Originally created by @jiucenglou on GitHub (Feb 9, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [Version 10.0.19042.789] Windows Terminal version (if applicable): 1.5.10271.0 Any other software? Ubuntu-18.04 emacs-nox inside Ubuntu-18.04 ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> run emacs blank.org -q press `<Alt>-<Shift>-<Enter>` press `<F1>` k `<Alt>-<Shift>-<Enter>` # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> press `<Alt>-<Shift>-<Enter>` should fills `* TODO` in the Emacs window press `<F1>` k `<Alt>-<Shift>-<Enter>` should shows info about `<M-S-RET>` in the Emacs buffer # Actual behavior <!-- What's actually happening? --> press `<Alt>-<Shift>-<Enter>` fills `* ` in the Emacs window press `<F1>` k `<Alt>-<Shift>-<Enter>` shows info about `<M-RET>` in the Emacs buffer # settings.json ``` // 2021/1-28: for Emacs // { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }, // { "command": "paste", "keys": "ctrl+v" }, { "command": "unbound", "keys": "alt+left" }, { "command": "unbound", "keys": "alt+right" }, { "command": "unbound", "keys": "alt+up" }, { "command": "unbound", "keys": "alt+down" }, { "command": "unbound", "keys": "alt+enter" }, ```
Author
Owner

@zadjii-msft commented on GitHub (Feb 9, 2021):

Curiously, it looks like gnome-terminal doesn't support M-S-Ret either. Is there a terminal you know that does support that keybinding? In that terminal, could you run showkey -a and press Alt+Shift+Enter and share what's output? Should be something like
image

@zadjii-msft commented on GitHub (Feb 9, 2021): Curiously, it looks like `gnome-terminal` doesn't support M-S-Ret either. Is there a terminal you know that _does_ support that keybinding? In that terminal, could you run `showkey -a` and press <kbd>Alt+Shift+Enter</kbd> and share what's output? Should be something like ![image](https://user-images.githubusercontent.com/18356694/107354819-3e6d8100-6a94-11eb-8442-fe4341d3e877.png)
Author
Owner

@jiucenglou commented on GitHub (Feb 9, 2021):

Curiously, it looks like gnome-terminal doesn't support M-S-Ret either. Is there a terminal you know that does support that keybinding? In that terminal, could you run showkey -a and press Alt+Shift+Enter and share what's output? Should be something like
image

I just tried and realized that not any one on my PC supports M-S-Ret.... :D

@jiucenglou commented on GitHub (Feb 9, 2021): > Curiously, it looks like `gnome-terminal` doesn't support M-S-Ret either. Is there a terminal you know that _does_ support that keybinding? In that terminal, could you run `showkey -a` and press Alt+Shift+Enter and share what's output? Should be something like > ![image](https://user-images.githubusercontent.com/18356694/107354819-3e6d8100-6a94-11eb-8442-fe4341d3e877.png) I just tried and realized that not any one on my PC supports M-S-Ret.... :D
Author
Owner

@zadjii-msft commented on GitHub (Feb 9, 2021):

Ah, so maybe this is just one of those keybindings that doesn't work in terminal at all then 🤔 There are a few other's like that - terminal input is just sometimes weird like that.

Since this isn't something that's expected to work in other terminals, I'm just going to close this one as by design. Sound good?

@zadjii-msft commented on GitHub (Feb 9, 2021): Ah, so maybe this is just one of those keybindings that doesn't work in terminal at all then 🤔 There are a few other's like that - terminal input is just sometimes weird like that. Since this isn't something that's expected to work in other terminals, I'm just going to close this one as by design. Sound good?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12468