[GH-ISSUE #846] Persistent activity in terminal #616

Closed
opened 2026-03-04 01:06:29 +03:00 by kerem · 3 comments
Owner

Originally created by @FunTimeCoding on GitHub (May 8, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/846

tview appears to be triggering the activity detection of at least iTerm

I wonder what could be the cause and how I might change my code to avoid that.

My goal is to only redraw the window when data I'm fetching actually changes, therefore notifying the terminal that there is "something new". I've had a working implementation with termui before, but switched to tview because it has more granular color control.

Screenshot 2023-05-08 at 12 56 12

Originally created by @FunTimeCoding on GitHub (May 8, 2023). Original GitHub issue: https://github.com/rivo/tview/issues/846 tview appears to be triggering the activity detection of at least iTerm I wonder what could be the cause and how I might change my code to avoid that. My goal is to only redraw the window when data I'm fetching actually changes, therefore notifying the terminal that there is "something new". I've had a working implementation with termui before, but switched to tview because it has more granular color control. ![Screenshot 2023-05-08 at 12 56 12](https://user-images.githubusercontent.com/1647065/236807110-2be22414-873d-47f8-b342-61f4b8b31032.png)
kerem closed this issue 2026-03-04 01:06:29 +03:00
Author
Owner

@rivo commented on GitHub (Jun 18, 2023):

You didn't provide much info about your application, e.g. what tview primitives you're using. So it's difficult for me to help you here.

Of course you can always fetch data separately in a goroutine and once you detect any changes, you update any of the primitives you're using. Be sure to checkout the Wiki page on concurrency when working with goroutines.

<!-- gh-comment-id:1596236620 --> @rivo commented on GitHub (Jun 18, 2023): You didn't provide much info about your application, e.g. what `tview` primitives you're using. So it's difficult for me to help you here. Of course you can always fetch data separately in a goroutine and once you detect any changes, you update any of the primitives you're using. Be sure to checkout [the Wiki page on concurrency](https://github.com/rivo/tview/wiki/Concurrency) when working with goroutines.
Author
Owner

@rivo commented on GitHub (Aug 26, 2023):

I'm going to close this issue if no further information is provided.

<!-- gh-comment-id:1694368140 --> @rivo commented on GitHub (Aug 26, 2023): I'm going to close this issue if no further information is provided.
Author
Owner

@FunTimeCoding commented on GitHub (Aug 28, 2023):

I shall put together a small prototype to replicate the behavior.

<!-- gh-comment-id:1695391997 --> @FunTimeCoding commented on GitHub (Aug 28, 2023): I shall put together a small prototype to replicate the behavior.
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#616
No description provided.