Skip to content
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

[EXTERNAL] Shift+Enter not working in WSL Ubuntu-18.04 on Windows Terminal #32

Open
anandgupta08 opened this issue Jul 10, 2021 · 4 comments

Comments

@anandgupta08
Copy link

Shift+Enter should insert a newline without submitting the current code.
However, it seems to submit the code instead of newline.

This happens on WSL Ubuntu-18.04 shell via WindowsTerminal.
This seems to work fine on Windows Command line.

image

The version of dotnet-repl used is :
image

@jonsequitur jonsequitur changed the title Shift+Enter not working in WSL Ubuntu-18.04 on Windows Terminal [EXTERNAL] Shift+Enter not working in WSL Ubuntu-18.04 on Windows Terminal Jul 16, 2021
@jonsequitur
Copy link
Owner

This is related to dotnet/runtime#802

@anandgupta08
Copy link
Author

This is related to dotnet/runtime#802

Is there a workaround to write multi line code in WSL Ubuntu?

@jeffhandley
Copy link

@jonsequitur dotnet/runtime#802 is fixed in .NET 7 RC1; this issue might be resolved now too.

@villecoder
Copy link

Running PopOS, 22.04 LTS and have the same problem. Shift+Enter is interpreted without the shift modifier. But this is likely a problem with the terminal and not WSL or Ubuntu in general. By default, the terminal maps Shift+Enter to Control+M. I don't know all of the details, but this StackOverflow answer may give us some insight.

https://unix.stackexchange.com/a/128403/444583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants