2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-08 19:10:41 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Keith Hall
00496e3408 Improve Ansi theme for better Man page syntax highlighting 2024-06-09 08:58:42 +03:00
Mitchell Kember
3099f51ba7 Add ansi theme to replace ansi-light and ansi-dark
This combines ansi-light and ansi-dark into a single theme that works
with both light and dark backgrounds. Instead of specifying white/black,
the ansi theme uses the terminal's default foreground/background color
by setting alpha=01, i.e. #00000001. This is in addition to the alpha=00
encoding where red contains an ANSI color palette number.

Now, `--theme ansi-light` and `--theme ansi-dark` will print a
deprecation notice and use ansi instead (unless the user has a custom
theme named ansi-light or ansi-dark, which would take precedence).
2020-12-21 17:05:10 +01:00