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(wincon)!: Make styled output stateless #127

Merged
merged 4 commits into from
Sep 27, 2023
Merged

fix(wincon)!: Make styled output stateless #127

merged 4 commits into from
Sep 27, 2023

Conversation

epage
Copy link
Collaborator

@epage epage commented Sep 27, 2023

To do this, we use cache the current colors on first check, rather than
re-querying it on every check.

This enables us to just have a simple WinconStream::write_colored
function.

This also fixes bugs with making sure that the stream is locked before
doing our various operations on it, avoiding race conditions.

To do this, we use cache the current colors on first check, rather than
re-querying it on every check.

This enables us to just have a simple `WinconStream::write_colored`
function.

This also fixes bugs with making sure that the stream is locked before
doing our various operations on it, avoiding race conditions.
@epage epage merged commit 2e8c9b7 into rust-cli:main Sep 27, 2023
13 checks passed
@epage epage deleted the per branch September 27, 2023 20:47
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.

1 participant