[GH-ISSUE #377] resize flashing on windows #277

Closed
opened 2026-03-04 01:03:34 +03:00 by kerem · 1 comment
Owner

Originally created by @tony-- on GitHub (Dec 11, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/377

My team is using tview for a console application and our QA team reported a usability bug. When the window is resized on Windows, the screen flashes. The flashing continues for a short time after the resize is finished. It isn't a huge issue, but it is a little ugly. I captured a gif that shows the flashing. I resized a few times, with some ridiculous resizes just to emphasize the effect, but you can see that it still occurs with a normal resize:
tview_redraw_flashing

I believe this can be mitigated by adding some throttling to the EventResize handling here. I'll open a PR with a suggested fix, but I'm not very experienced with golang so please go easy on me!

Originally created by @tony-- on GitHub (Dec 11, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/377 My team is using tview for a console application and our QA team reported a usability bug. When the window is resized on Windows, the screen flashes. The flashing continues for a short time after the resize is finished. It isn't a huge issue, but it is a little ugly. I captured a gif that shows the flashing. I resized a few times, with some ridiculous resizes just to emphasize the effect, but you can see that it still occurs with a normal resize: ![tview_redraw_flashing](https://user-images.githubusercontent.com/513830/70582356-1f611f80-1b6f-11ea-95e7-7720a2ee299b.gif) I believe this can be mitigated by adding some throttling to [the EventResize handling here](https://github.com/rivo/tview/blob/master/application.go#L240). I'll open a PR with a suggested fix, but I'm not very experienced with golang so please go easy on me!
kerem closed this issue 2026-03-04 01:03:34 +03:00
Author
Owner

@rivo commented on GitHub (Jan 27, 2020):

Shuold be fixed with the latest commit (see #378).

<!-- gh-comment-id:578771818 --> @rivo commented on GitHub (Jan 27, 2020): Shuold be fixed with the latest commit (see #378).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#277
No description provided.