Skip to content
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

Fix support for redirected stdin on Windows #8

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

craig65535
Copy link

@craig65535 craig65535 commented Apr 27, 2022

Fixes #7.

I updated the README here, and added a check to NewReader to ensure the supplied reader is a console.

I also created a unit test that runs NewReader in a child process with a redirected stdin. It should work on both unix and Windows platforms. Without this fix, the test will fail on Windows.

@craig65535
Copy link
Author

Hello @muesli. I was wondering if I could get approval to run the PR workflows here. I'd love to contribute & help fix this bug. Thank you!

@muesli
Copy link
Owner

muesli commented Jun 21, 2022

Sorry for the delayed response, but of course I'm happy to approve the CI workflows!

@craig65535
Copy link
Author

Hello @muesli. It looks like the CI passed - did you have any comments on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirected stdin not handled properly on Windows
2 participants