Add --color=[dark|light|16|bw] option

- dark:  the current default for 256-color terminal
- light: color scheme for 256-color terminal with light background
- 16:    the default color scheme for 16-color terminal (`+2`)
- bw:    no colors (`+c`)
This commit is contained in:
Junegunn Choi committed 2015-04-18 02:55:17 +09:00
1 parent 2fe1e28220
commit f66d94c6b0
7 files changed
+124 -47

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ func Run(options *Options) {
return data, nil
}
if opts.Ansi {
if opts.Color {
if opts.Theme != nil {
ansiProcessor = func(data *string) (*string, []ansiOffset) {
return extractColor(data)
}