Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Terminal cannot print all output. Part 2 #61635

Closed
Friday32 opened this issue Oct 23, 2018 · 1 comment
Closed

Terminal cannot print all output. Part 2 #61635

Friday32 opened this issue Oct 23, 2018 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@Friday32
Copy link

Friday32 commented Oct 23, 2018

I'm running into a similar problem to issue #36787 that is now closed.

I have a console app written in C using Visual Studio Professional that is being called in a vscode task.

The output in the Terminal window should look something like:

[ 7%] First line of text.
[ 14%] Second line of text.
[ 21%] Third line of text.
[ 28%] Fourth line of text.
[ 35%] Fifth line of text.
[ 42%] Sixth line of text.
....

But, I might see something like:

[ 7%] First line [ 14%] Second line of text.
[ 21%] Third line of text.
[ 28%] Fourth line of[ 35%] Fifth line of [ 42%] Sixth line of text.

It looks correct when the data is passed to the Output window instead of the Terminal window.

In my application, I have the lines that turn off buffering:
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);

The output looks correct if when commenting out these lines, but I suspect you can still get the error as all my printfs() have a strings that end with a newline character.

@vscodebot vscodebot bot added the editor-contrib Editor collection of extras label Oct 23, 2018
@Tyriar
Copy link
Member

Tyriar commented Dec 3, 2018

This is likely related to winpty, tracking in #45693

@Tyriar Tyriar closed this as completed Dec 3, 2018
@Tyriar Tyriar added *duplicate Issue identified as a duplicate of another issue(s) and removed editor-contrib Editor collection of extras labels Dec 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 17, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants