mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #111] Feature Request: Add SetTextFlag() method #86
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#86
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 @dtoubelis on GitHub (May 9, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/111
We are working on a TUI application that supposed to run on linux console. We discovered that
gdamore/tcelllibrary strictly adheres to terminal definitions on linux and only supports 8 colors by compressing 16 colors into 8 if necessary (for instanceColorYellowwould becomeColorOliveon linux console). I talked to Garrett about this here and I think this is actually desirable behavior.This said, using all 16 colors can easily be achieved by using
boldflag on most terminals. We actually currently use a workaround as follows for this:So, would it be possible to add method for setting text flags on the cell in addition to color that the code above would become more like this:
@rivo commented on GitHub (May 15, 2018):
Yeah, makes sense. I added
SetAttributes()andSetStyle()(as a shortcut to the three individual functions).