Open yaahc opened 4 years ago
Is this related to how I can't get "bright" colors without using the bold()
function?
If so, yes please. I want the bright/intense colors without setting the font to bold.
@cjbottaro Just FYI, you get bright colors when using the bold function only because some terminals have "Use bright colors for bold text" enabled which might not always be the case. If you really want consistent bright colors, you can use 256 colors with the Color::Fixed
.
If you really want consistent bright colors, you can use 256 colors with the Color::Fixed.
Using the 256 color pallete has some disadvantages:
nu-ansi-term supports Color::LightRed
to get a bright red using the standard 16-color pallette. I don't know of a way to do it in this crate though. :(
related to this issue in
color-eyre
where it was reported that colors are particularly dark on Windows https://github.com/yaahc/color-eyre/issues/12The
color-backtrace
crate whichcolor-eyre
depends on fixes this issue by usingintense
variants of colors, according totermcolor
, which are the8-15
colors instead of the standard0-7
colors. I think it makes sense to add a helper function onColor
that will change aColor
to its intense version if applicable.