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

Console.Unix: make Console.OpenStandardInput Stream aware of terminal #39192

Merged
merged 6 commits into from
Aug 14, 2020

Conversation

tmds
Copy link
Member

@tmds tmds commented Jul 13, 2020

When performing OpenStandardInput against a terminal, perform Reads on a
line-by-line basis and perform appropriate processing and echoing.

Fixes #39008

@eiriktsarpalis @stephentoub ptal

@ghost
Copy link

ghost commented Jul 13, 2020

Tagging subscribers to this area: @eiriktsarpalis
Notify danmosemsft if you want to be subscribed.

@eiriktsarpalis
Copy link
Member

Seems reasonable. Do you think you could also provide a manual test that highlights the functional changes introduced here?

@tmds
Copy link
Member Author

tmds commented Jul 14, 2020

@eiriktsarpalis I've updated the PR based on your feedback. I will still look into adding a manual test.

@eiriktsarpalis eiriktsarpalis added this to the 5.0.0 milestone Aug 6, 2020
@eiriktsarpalis
Copy link
Member

Any progress on this PR? This is a bug, which we should address for 5.0.

@eiriktsarpalis eiriktsarpalis self-assigned this Aug 12, 2020
tmds added 5 commits August 12, 2020 18:19
When performing OpenStandardInput against a terminal, perform Reads on a
line-by-line basis and perform appropriate processing and echoing.
@adamsitnik
Copy link
Member

@eiriktsarpalis

image

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @tmds

I have tested it manually and it works as expected. The CI is green, code looks good. Merging and including in 5.0

@adamsitnik adamsitnik merged commit 1e6e8d9 into dotnet:master Aug 14, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StreamReader over standard input stream does not echo if Console.ReadLine has been run first
4 participants