Skip to content

Intermittent screen flashes #576

Closed
Closed
@palerdot

Description

@palerdot

Firstly, I would like to convey my thanks for the tcell library.

I'm facing an issue, where I'm seeing intermittent tiny screen flashes during repaint/Sync call. I have built a web like terminal wordle, where I have to animate the guess letter colors. When animating the letter colors of the guess word, I'm seeing intermittent screen flashes. I have attached a gif screenshot at the end of this issue. In the screenshot, you can see dark blue flashes when the word is animated. The dark blue is my actual terminal background color. I would like to know if there is something I should do when calling s.Sync() to prevent these flashes.

The relevant part of code can be seen here - https://github.com/palerdot/wordl/blob/master/screen/screen.go#L115
Full source code can be seen here - https://github.com/palerdot/wordl

I tried looking for documentation but unable to find them. tcell is my only dependency, and I thought of seeking help here. It would be great if someone from tcell team can clarify if anything can be done to prevent these intermittent flashes.

wordl-screen-flash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions