feat: NO_COLOR env to not use ansi colors in miro

This commit is contained in:
2026-03-21 06:48:23 +00:00
parent 7b61da612a
commit b3fc15d3ae
4 changed files with 71 additions and 8 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func (s Style) BG(rgb uint32) Style {
}
func (s Style) Apply(text string) string {
if !s.bold && !s.italic && s.fg == nil && s.bg == nil {
if noColor() || (!s.bold && !s.italic && s.fg == nil && s.bg == nil) {
return text
}