Console.Unix: support backspace during Console.Read - #49649
Conversation
| { | ||
| _readLineSB.Length = len - 1; | ||
| if (!previouslyProcessed) | ||
| removed = _tmpKeys.TryPop(out _); |
There was a problem hiding this comment.
This TryPop is the actual bugfix.
|
@adamsitnik @jozkee and @carlossanlop ptal |
@adamsitnik @jozkee and @carlossanlop ping |
|
I'm sorry for the delay getting this reviewed, @tmds! With the FileStream effort winding down, I expect @adamsitnik, @carlossanlop, and @jozkee will be able to take a look very soon. |
|
Tagging @dotnet/area-system-io. It would be great to get this reviewed before the Preview 6 snap so that we can include this fix in that release. |
|
@dotnet/area-system-io ptal This fixes an issue reported by a user in #49129 (comment). |
|
@adamsitnik This PR is assigned to you for follow-up/decision before the RC1 snap, with a high priority. |
adamsitnik
left a comment
There was a problem hiding this comment.
I've tested it on both Windows 10 and Ubuntu 18.04 and all Manual tests are passing. @tmds big thanks for the fix and appologies for such a delay in the review!
Fixes #49129 (comment).
In addition to the fix, I've refactored the code a bit and added some
Assertsto help make it more clear.@stephentoub @eiriktsarpalis ptal
cc @webczat