diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-18 02:52:30 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-18 02:55:17 +0900 |
commit | f66d94c6b06c58141c40935bfb18a45858cf79da (patch) | |
tree | bf33ee2c91769984d59d2fd0fb479bdeda5f80a1 /src/core.go | |
parent | 2fe1e28220c543ddbf4e12ee7396e44ee85ad8e0 (diff) |
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`)
Diffstat (limited to 'src/core.go')
-rw-r--r-- | src/core.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go index 7230cffd..d7a6a0bb 100644 --- a/src/core.go +++ b/src/core.go @@ -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) } |