mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #1126] ANSIWriter: sequence \033[1;0m does not reset all attributes #814
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#814
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 @Ikke on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1126
Demonstrated by the following go snippet:
See https://go.dev/play/p/_yXZTydD9YL
The expectation is that it would reset all attributes due to the final
0;. So it should result in either[-:-:-]or at least[::b][-:-:-]. This is how it works in other terminals.The effect is that something like
\x033[1;32mtest\x033[1;0mcauses all remaining text to be printed as green as well, while in terminals, and gitlab log output, all attributes are reset and the remaining text is printed normally.