Enha: explicit app.Draw per textView update for smooth streaming

This commit is contained in:
Grail Finder
2026-03-05 10:35:17 +03:00
parent 645b7351a8
commit 6e9c453ee0

5
tui.go
View File

@@ -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).