[GH-ISSUE #1081] Reset multiple formatting ANSI codes not working #785

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

Originally created by @quantonganh on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1081

Relate issue: https://github.com/rivo/tview/issues/1031

With this fix, if an ANSI code is prefixed with 0 (reset), it won't work.

Steps to reproduce:

  1. Use the example from the wiki
  2. Run the following command:
echo -e "\e[0;3;31mid\e[0m" | go run main.go
Originally created by @quantonganh on GitHub (Apr 3, 2025). Original GitHub issue: https://github.com/rivo/tview/issues/1081 Relate issue: https://github.com/rivo/tview/issues/1031 With [this](https://github.com/rivo/tview/commit/e34b54cd4c27661d7d46aa9b7b5b25c377a128ee) fix, if an ANSI code is prefixed with 0 (reset), it won't work. Steps to reproduce: 1. Use the [example](https://github.com/rivo/tview/wiki/ANSI) from the wiki 2. Run the following command: ```sh echo -e "\e[0;3;31mid\e[0m" | go run main.go ```
kerem closed this issue 2026-03-04 01:07:44 +03:00
Author
Owner

@rivo commented on GitHub (Aug 27, 2025):

Thanks. The above commit fixes this.

<!-- gh-comment-id:3229417352 --> @rivo commented on GitHub (Aug 27, 2025): Thanks. The above commit fixes this.
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#785
No description provided.