mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #25] Support Multi-Colored table cells #20
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#20
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 @maja42 on GitHub (Jan 13, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/25
Currently, it is only possible to define a single color in a TableCell.
It would be great if multiple colors could be supported, perhaps using ansi escape characters? (see my previous question/feature request: #24)
Here is my use case:
I display a table with various git projects and the current repository status. If any repository is in an unwanted state, the information should be printed red. For example, if there are still uncomitted files or untracked branches, the user should see it at a glance.
Here is an example output how it should look like:
This was implemented using gocui. With the current way tables (and table cells in particular) in tview work, this can not be accomplished.
@maja42 commented on GitHub (Jan 14, 2018):
This is also linked to issue #20
@rivo commented on GitHub (Jan 16, 2018):
I'm looking into this. Will get back to you.
@rivo commented on GitHub (Jan 17, 2018):
This is implemented now. It doesn't just affect tables but all other strings as well. I.e. you can partially color titles, lists, modals etc.