From 6e9c453ee0f4a0212ef3f3200156c62a5c30b1ad Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 5 Mar 2026 10:35:17 +0300 Subject: [PATCH] Enha: explicit app.Draw per textView update for smooth streaming --- tui.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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).