-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interaction of _read on fd 0 in terminal #16299
Comments
Apparently something having to do with handling of CR LF line endings in terminal, but, that |
maybe #15662? |
I noticed that if you change the |
I believe this is a duplicate of #16223. I haven't checked how |
This fixes an issue where character-wise reading of an input like "abc" would return "a" to the caller, store "b" as a partial translation (= wrong) and return "c" for the caller to store it for the next call. Closes #16223 Closes #16299 ## Validation Steps Performed * `ReadFile` with a buffer size of 1 returns inputs character by character without dropping any inputs ✅ --------- Co-authored-by: Dustin L. Howett <duhowett@microsoft.com>
This fixes an issue where character-wise reading of an input like "abc" would return "a" to the caller, store "b" as a partial translation (= wrong) and return "c" for the caller to store it for the next call. Closes #16223 Closes #16299 ## Validation Steps Performed * `ReadFile` with a buffer size of 1 returns inputs character by character without dropping any inputs ✅ --------- Co-authored-by: Dustin L. Howett <duhowett@microsoft.com> (cherry picked from commit 63b3820) Service-Card-Id: 91122022 Service-Version: 1.19
This fixes an issue where character-wise reading of an input like "abc" would return "a" to the caller, store "b" as a partial translation (= wrong) and return "c" for the caller to store it for the next call. Closes #16223 Closes #16299 ## Validation Steps Performed * `ReadFile` with a buffer size of 1 returns inputs character by character without dropping any inputs ✅ --------- Co-authored-by: Dustin L. Howett <duhowett@microsoft.com> (cherry picked from commit 63b3820) Service-Card-Id: 91108808 Service-Version: 1.18
Windows Terminal version
1.19.2682.0
Windows build number
Version 10.0.22621.2428
Other Software
No response
Steps to reproduce
Compile the attached, run, and press enter multiple times. Behavior is the same with MSVC in Visual studio 2022 and with latest MinGW with GCC using 64-bit UCRT.
Expected Behavior
I expected the behavior found on MinGW's mintty, when I press the enter key multiple times.
Actual Behavior
This is what happens in Terminal when I press the enter key multiple times on a recent Terminal
The text was updated successfully, but these errors were encountered: