diff options
author | Mitchell Kember <mk12360@gmail.com> | 2020-07-19 16:49:10 -0400 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-08-03 11:39:49 +0200 |
commit | f9d5e81f0e72a130ccbe466c82ee1a0acb919c3d (patch) | |
tree | 1c75871180fea7817143c2a67b2762a4f9c96bbe /src | |
parent | 00d1267bddd88e2008910414c25b20b13045c088 (diff) |
Add new theme: base16-256
Bat already has a base16 theme. The new base16-256 theme is for users
of base16-shell, who configure their terminal with a 256-color variant
of a base16 theme. These variants put some of the base16 colors in
elsewhere in the 256-color table to avoid clobbering bright color slots
(ansi codes 8 to 15) with colors that don't respect the ordinary meaning
of that slot (e.g. bright green in ordinary base16 is not green).
For more details, see https://github.com/chriskempson/base16-shell
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.rs b/src/terminal.rs index c8e2cd48..b744ba9a 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -8,7 +8,7 @@ pub fn to_ansi_color(color: highlighting::Color, true_color: bool) -> ansi_term: // Themes can specify one of the user-configurable terminal colors by // encoding them as #RRGGBBAA with AA set to 00 (transparent) and RR set // to the 8-bit color palette number. The built-in themes ansi-light, - // ansi-dark, and base16 use this. + // ansi-dark, base16, and base16-256 use this. match color.r { // For the first 8 colors, use the Color enum to produce ANSI escape // sequences using codes 30-37 (foreground) and 40-47 (background). |