Skip to content

Crossterm backend not properly flushing after print #365

Open
@MichaelMackus

Description

@MichaelMackus

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions