-
Notifications
You must be signed in to change notification settings - Fork 274
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
Colored output out of order WinApi #38
Labels
Comments
TimonPost
changed the title
Console color bug WinApi
Colored output out of order WinApi
Oct 21, 2018
In version 0.5 this will be partially solved. As long as you don't use alternate screen you won't have problems with it. |
This is partially solved with #44. When you aren't working with alternate screen it is working as expected now @Rukenshia . |
This will be fully fixed in 0.9 |
Fixed in #115 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a problem occurring where WinaApi is the default like Windows 7,8.
Here's the code:
But it gets displayed as this:
As you can see, the "the exact path to the saml client" gets put to the start of the message. It also seems like the color is cleared to "white" instead of the default gray.
To print an colored text in the middle of a phrase you can call
into_displayable()
on aStyledObject
. But with WinApi the colored text will not be at the place you have placed the formatting{}
symbols. But instead, it will be printed at the start of the console.Here you have some code to reproduce.
I don't really know what this is I think it has to be doing something with buffering of text. Like when you call
into_dispayable()
your text will be written with WinApi. Maybe because of that WinApi will write first before rust writes the text to the console.The text was updated successfully, but these errors were encountered: