[GH-ISSUE #25] Support Multi-Colored table cells #20

Closed
opened 2026-03-04 01:01:10 +03:00 by kerem · 3 comments
Owner

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:

image

This was implemented using gocui. With the current way tables (and table cells in particular) in tview work, this can not be accomplished.

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: ![image](https://user-images.githubusercontent.com/2649265/34909637-33457198-f8a5-11e7-8b85-9ce2f7238d3e.png) This was implemented using gocui. With the current way tables (and table cells in particular) in tview work, this can not be accomplished.
kerem closed this issue 2026-03-04 01:01:11 +03:00
Author
Owner

@maja42 commented on GitHub (Jan 14, 2018):

This is also linked to issue #20

<!-- gh-comment-id:357496052 --> @maja42 commented on GitHub (Jan 14, 2018): This is also linked to issue #20
Author
Owner

@rivo commented on GitHub (Jan 16, 2018):

I'm looking into this. Will get back to you.

<!-- gh-comment-id:358084420 --> @rivo commented on GitHub (Jan 16, 2018): I'm looking into this. Will get back to you.
Author
Owner

@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.

<!-- gh-comment-id:358355440 --> @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.
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#20
No description provided.