feat: NO_COLOR env to not use ansi colors in miro
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user