mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #124] Text widget should allow atomic content replace #79
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mum4k on GitHub (Feb 15, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/124
The Write method currently only appends text:
github.com/mum4k/termdash@34fe013ca6/widgets/text/text.go (L101)If the user wants to replace the content they need to call Reset followed by Write.
github.com/mum4k/termdash@34fe013ca6/widgets/text/text.go (L82)This is racy as a redraw might happen in between. We should provide an option that when provided will change the behavior of Write to atomically Reset+Write.