dotnet-repl icon indicating copy to clipboard operation
dotnet-repl copied to clipboard

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

Open anandgupta08 opened this issue 4 years ago • 4 comments

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

anandgupta08 avatar Jul 10 '21 04:07 anandgupta08

This is related to https://github.com/dotnet/runtime/issues/802

jonsequitur avatar Jul 16 '21 00:07 jonsequitur

This is related to dotnet/runtime#802

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

anandgupta08 avatar Jul 30 '21 00:07 anandgupta08

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

jeffhandley avatar Sep 23 '22 20:09 jeffhandley

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

villecoder avatar Oct 09 '23 20:10 villecoder