File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ color mappings.
482482
483483.RS
484484.B BASE SCHEME:
485- (default: dark on 256-color terminal, otherwise 16 )
485+ (default: \fB dark \fR on 256-color terminal, otherwise \fB 16 \fR ; If \fB NO_COLOR \fR is set, \fB bw \fR )
486486
487487 \fB dark \fR Color scheme for dark 256-color terminal
488488 \fB light \fR Color scheme for light 256-color terminal
Original file line number Diff line number Diff line change @@ -481,6 +481,13 @@ func defaultPreviewOpts(command string) previewOpts {
481481}
482482
483483func defaultOptions () * Options {
484+ var theme * tui.ColorTheme
485+ if os .Getenv ("NO_COLOR" ) != "" {
486+ theme = tui .NoColorTheme ()
487+ } else {
488+ theme = tui .EmptyTheme ()
489+ }
490+
484491 return & Options {
485492 Bash : false ,
486493 Zsh : false ,
@@ -502,7 +509,7 @@ func defaultOptions() *Options {
502509 Multi : 0 ,
503510 Ansi : false ,
504511 Mouse : true ,
505- Theme : tui . EmptyTheme () ,
512+ Theme : theme ,
506513 Black : false ,
507514 Bold : true ,
508515 MinHeight : 10 ,
You can’t perform that action at this time.
0 commit comments