Implements support for terminals with light backgrounds via a new
`CHEAT_COLORSCHEME` envvar.
This commit is contained in:
Chris Lane
2019-02-04 11:56:00 -05:00
parent 2728ce4757
commit caf355f142
4 changed files with 28 additions and 4 deletions

View File

@@ -118,6 +118,13 @@ export CHEAT_COLORS=true
Note that [pygments][] must be installed on your system for this to work.
`cheat` ships with both light and dark colorschemes to support terminals with
different background colors. A colorscheme may be selected via the
`CHEAT_COLORSCHEME` envvar:
```sh
export CHEAT_COLORSCHEME=light # must be 'light' (default) or 'dark'
```
#### Specifying a Syntax Highlighter ####
You may manually specify which syntax highlighter to use for each cheatsheet by