summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-05 10:35:17 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-05 10:35:17 +0300
commit6e9c453ee0f4a0212ef3f3200156c62a5c30b1ad (patch)
treef081154ab864852c9c7e2fc87b0784d4c98bf6fa
parent645b7351a80713a40e2c823479a3605baeb231b8 (diff)
Enha: explicit app.Draw per textView update for smooth streaming
-rw-r--r--tui.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/tui.go b/tui.go
index 36a34bb..f744825 100644
--- a/tui.go
+++ b/tui.go
@@ -324,8 +324,11 @@ func init() {
SetDynamicColors(true).
SetRegions(true).
SetChangedFunc(func() {
+ // INFO:
// https://github.com/rivo/tview/wiki/Concurrency#event-handlers
- // app.Draw() // already called by default per tview specs
+ // although already called by default per tview specs
+ // calling it explicitly makes text streaming to look more smooth
+ app.Draw()
})
notificationWidget = tview.NewTextView().
SetTextAlign(tview.AlignCenter).