vezel-dev / cathode

A terminal-centric replacement for the .NET console APIs.
https://docs.vezel.dev/cathode
BSD Zero Clause License
91 stars 7 forks source link

Backspace behavior is incorrect on Windows in cooked mode #9

Open alexrp opened 4 years ago

alexrp commented 4 years ago

When switching to virtual terminal mode, it seems that the behaviors of Backspace and Ctrl-Backspace are swapped.

More details in: https://github.com/microsoft/terminal/issues/4949

xoofx commented 2 years ago

Hey, Just discovered your library and it's greatly designed!

I found one issue probably related to this issue. While trying this program:

Terminal.OutLine("Type some text:");
while (true)
{
    var line = Terminal.ReadLine();
    if (line == null) break;
    Terminal.OutLine(line);
}

In CMD, the input seems to not always work on enter, sometimes it happens straight, sometimes it happens after the first inputted line.

Could be that ENABLE_VIRTUAL_TERMINAL_INPUT is also messing around for that case, I haven't investigated what's exactly received by ReadLine.

alexrp commented 2 years ago

That's most likely unrelated and could be related to the recently-added cancellation support.

Would you mind filing a separate issue with more info? (Library version, Windows version, etc.)