dotnet-repl
dotnet-repl copied to clipboard
[EXTERNAL] Shift+Enter not working in WSL Ubuntu-18.04 on Windows Terminal
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.

The version of dotnet-repl used is :

This is related to https://github.com/dotnet/runtime/issues/802
@jonsequitur dotnet/runtime#802 is fixed in .NET 7 RC1; this issue might be resolved now too.
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