[PR #15122] Return success if ReadCharacterInput read >0 characters #30448

Closed
opened 2026-01-31 09:40:52 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15122

State: closed
Merged: Yes


This is a regression caused by 599b550. If I'm reading stream.cpp
in cf87590 right, it returns STATUS_SUCCESS if ReadCharacterInput
read at least 1 character. I think? this PR makes the code behave
exactly equivalent. The old code is a bit of an "acquired taste"
so it's a bit hard to tell.

Closes #15116

PR Checklist

  • Run more long_text_file.txt in cmd
  • Press Spacebar
  • Scrolls down
  • Press Q
  • Exits
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15122 **State:** closed **Merged:** Yes --- This is a regression caused by 599b550. If I'm reading `stream.cpp` in cf87590 right, it returns `STATUS_SUCCESS` if `ReadCharacterInput` read at least 1 character. I think? this PR makes the code behave exactly equivalent. The old code is a bit of an "acquired taste" so it's a bit hard to tell. Closes #15116 ## PR Checklist * Run `more long_text_file.txt` in cmd * Press Spacebar * Scrolls down ✅ * Press Q * Exits ✅
claunia added the pull-request label 2026-01-31 09:40:52 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30448