[GH-ISSUE #232] Feature request: add AppendText to TextView #179

Closed
opened 2026-03-04 01:02:41 +03:00 by kerem · 2 comments
Owner

Originally created by @dguendisch on GitHub (Feb 1, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/232

Would be cool if TextView had an AppendText in addition to the current SetText one, which always clears the textview before rendering it again.
AppendText would be helpful for a log-tail like UI where new lines are appended to the existing text.

Originally created by @dguendisch on GitHub (Feb 1, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/232 Would be cool if TextView had an `AppendText` in addition to the current SetText one, which always clears the textview before rendering it again. `AppendText` would be helpful for a log-tail like UI where new lines are appended to the existing text.
kerem closed this issue 2026-03-04 01:02:41 +03:00
Author
Owner

@joegrasse commented on GitHub (Feb 1, 2019):

As shown in the TextView Example, you can use TextView as an io.Writer. This allows you to continue to append text.

fmt.Fprintf(textView, "%s ", word)

<!-- gh-comment-id:459729427 --> @joegrasse commented on GitHub (Feb 1, 2019): As shown in the [TextView Example](https://github.com/rivo/tview/wiki/TextView), you can use TextView as an ```io.Writer```. This allows you to continue to append text. ```fmt.Fprintf(textView, "%s ", word)```
Author
Owner

@dguendisch commented on GitHub (Feb 1, 2019):

I see, thanks for the hint!

<!-- gh-comment-id:459729993 --> @dguendisch commented on GitHub (Feb 1, 2019): I see, thanks for the hint!
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#179
No description provided.