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

Crossterm backend not properly flushing after print #365

Open
MichaelMackus opened this issue Oct 24, 2024 · 0 comments · May be fixed by #366
Open

Crossterm backend not properly flushing after print #365

MichaelMackus opened this issue Oct 24, 2024 · 0 comments · May be fixed by #366

Comments

@MichaelMackus
Copy link

The crossterm backend doesn't appear to be properly flushing after calls to print. The issue is due to partial updates not flushing the stdout output stream. The bug occurs linux, perhaps it doesn't apply to all systems.

I've submitted a PR with a fix. You can also workaround the bug by calling stdout().flush().expect("Command fail"); in your tick function (although that will only flush the previous frame's buffer I believe, since the actual output happens after the call to tick).

@MichaelMackus MichaelMackus linked a pull request Oct 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant