JoshuaWierenga / EfiSharp

An Attempt at building at least some of C# corelib for EFI applications. Inspired by https://github.com/MichalStrehovsky/zerosharp to see if this possible.
MIT License
18 stars 4 forks source link

Console.ReadLine returns a different string when control chars are used #5

Closed JoshuaWierenga closed 3 years ago

JoshuaWierenga commented 3 years ago

An example is shown below where backspace and then yes is entered which results in ReadLine not returning "yes" and in this case not clearing the screen. image

Entering any number of control chars while entering chars into ReadLine should produce the same string and just entering the chars directly. Additionally, this string should match the chars shown on screen.

This might be linked to #3.

JoshuaWierenga commented 3 years ago

The issue described here was just a manifestation of the same issue described in #3. In the image, there is no space between the prompt and the input which results in the first char being ignored. In that case, the returned string would have been "es". If another control char introduces a bug, this issue can be reopened or another one can be made.