[GH-ISSUE #464] question: why convert ansi escape sequences to "color codes" #333

Closed
opened 2026-03-04 01:04:05 +03:00 by kerem · 1 comment
Owner

Originally created by @ghostsquad on GitHub (Jun 27, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/464

This is just a design question of why you chose to convert ansi escape sequences to "color codes"?

Originally created by @ghostsquad on GitHub (Jun 27, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/464 This is just a design question of why you chose to convert ansi escape sequences to "color codes"?
kerem closed this issue 2026-03-04 01:04:05 +03:00
Author
Owner

@rivo commented on GitHub (Jun 28, 2020):

The colour tags came first. I wanted a simple way to add colour to widgets*.

But then there were users who wanted to display the output of other processes in a TextView, including colour. So now there's a converter for ANSI escape sequences.


  • Of course, for some, it's too simple. And it makes it difficult for others who frequently need to display square brackets without changing colours. But it's hard to please everyone so there's a tradeoff here.
<!-- gh-comment-id:650711879 --> @rivo commented on GitHub (Jun 28, 2020): The colour tags came first. I wanted a simple way to add colour to widgets*. But then there were users who wanted to display the output of other processes in a `TextView`, including colour. So now there's a converter for ANSI escape sequences. --- * Of course, for some, it's too simple. And it makes it difficult for others who frequently need to display square brackets without changing colours. But it's hard to please everyone so there's a tradeoff here.
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#333
No description provided.