mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #379] How to set display attributes (bold, underline, reverse etc.) on a TreeNode? #280
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#280
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 @polyzium on GitHub (Dec 15, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/379
I'd like my applications to be compatible with real DEC VT terminals. Applications using tcell/tview like to discard colours if
TERM=vt***e.g.vt320. When I was about to fix an application, I couldn't findSetAttributeor something like that forTreeNodes. So for example if I want to set the currently selectedTreeNodein aTreeView, forxtermor similar I simply set the color usingSetColor. But if I want to indicate that on DEC VT320 for example, I need to set the underline attribute on that node, and I don't have the function for that.@rivo commented on GitHub (Dec 29, 2019):
You'll want to prepend the text of your tree node with a color tag
[::u]. That should do the trick.@rivo commented on GitHub (Feb 19, 2020):
Will reopen if more information is needed.