Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Console.Write() doesn't show output until a newline - #3013

Merged
eerhardt merged 2 commits into
dotnet:rel/1.0.0from
eerhardt:StreamForwarder
May 14, 2016
Merged

eerhardt merged 2 commits into
dotnet:rel/1.0.0from
eerhardt:StreamForwarder

Conversation

@eerhardt

Copy link
Copy Markdown
Member

When running an app with dotnet run, we are redirecting the standard out and error just to print it out to our standard out and error. However, we are batching the output until we hit a newline, which isn't ideal for console apps.

To fix this, dotnet run no longer redirects the standard out and error.

Fix #2777

@brthor @anurse

When running an app with `dotnet run`, we are redirecting the standard out and error just to print it out to our standard out and error. However, we are batching the output until we hit a newline, which isn't ideal for console apps.

To fix this, `dotnet run` no longer redirects the standard out and error.

Fix #2777
@eerhardt

Copy link
Copy Markdown
Member Author

ping. Any reviewers?

@Sridhar-MS @livarcocc @piotrpMSFT

@brthor

brthor commented May 13, 2016

Copy link
Copy Markdown

This looks pretty nice. I like the RunCommandFactory! :shipit:

public ICommand CaptureStdErr()
{
ThrowIfRunning();
EnsureStdErr();

This comment was marked as spam.

This comment was marked as spam.

@eerhardt

Copy link
Copy Markdown
Member Author

Test Ubuntu x64 Release Build

@eerhardt
eerhardt merged commit eb7054c into dotnet:rel/1.0.0 May 14, 2016
@eerhardt
eerhardt deleted the StreamForwarder branch May 25, 2016 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants