diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-05 10:35:17 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-05 10:35:17 +0300 |
| commit | 6e9c453ee0f4a0212ef3f3200156c62a5c30b1ad (patch) | |
| tree | f081154ab864852c9c7e2fc87b0784d4c98bf6fa | |
| parent | 645b7351a80713a40e2c823479a3605baeb231b8 (diff) | |
Enha: explicit app.Draw per textView update for smooth streaming
| -rw-r--r-- | tui.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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). |
