[GH-ISSUE #973] Artefacts on screen #711

Closed
opened 2026-03-04 01:07:11 +03:00 by kerem · 2 comments
Owner

Originally created by @chemax on GitHub (Apr 21, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/973

My gist
Hi.

  1. Thank you for great lib.
  2. Can someone help me, maybe, please. When I try to recreate table in my grid, I have some artifacts. How I can fix it?

I'm attach my code and video example.
Please, help)

https://github.com/rivo/tview/assets/1465506/072590c5-2a77-49f7-a194-6eddeb06374c

Originally created by @chemax on GitHub (Apr 21, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/973 [My gist](https://gist.github.com/chemax/aef91af2e6f5ea8f196e5d93c6e7aaeb) Hi. 1) Thank you for great lib. 2) Can someone help me, maybe, please. When I try to recreate table in my grid, I have some artifacts. How I can fix it? I'm attach my code and video example. Please, help) https://github.com/rivo/tview/assets/1465506/072590c5-2a77-49f7-a194-6eddeb06374c
kerem closed this issue 2026-03-04 01:07:12 +03:00
Author
Owner

@chemax commented on GitHub (Apr 22, 2024):

The gist is not a complete runnable. It is difficult to test.

Wrap any screen changes/updates in the app.QueueUpdateDraw(func(){}) handler so that the screen updates happen on the main UI thread and the re-draw is called.

Thank you for help and sorry for my bad example. I will try to create runnable example some later.
I was try to execute QueueUpdateDraw, but my app just frozen, when I try it like this:

t.App.QueueUpdateDraw(func() {
grid.AddItem(secretsTable, 1, 1, 1, 1, 0, 100, true)
})
<!-- gh-comment-id:2068671585 --> @chemax commented on GitHub (Apr 22, 2024): > The gist is not a complete runnable. It is difficult to test. > > Wrap any screen changes/updates in the `app.QueueUpdateDraw(func(){})` handler so that the screen updates happen on the main UI thread and the re-draw is called. Thank you for help and sorry for my bad example. I will try to create runnable example some later. I was try to execute QueueUpdateDraw, but my app just frozen, when I try it like this: ``` t.App.QueueUpdateDraw(func() { grid.AddItem(secretsTable, 1, 1, 1, 1, 0, 100, true) }) ```
Author
Owner

@chemax commented on GitHub (Apr 22, 2024):

app.Sync() solve my problem. Thank you for tview.

<!-- gh-comment-id:2068701275 --> @chemax commented on GitHub (Apr 22, 2024): app.Sync() solve my problem. Thank you for tview.
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#711
No description provided.