Function anstyle_lossy::color_to_xterm
source ยท pub const fn color_to_xterm(color: Color) -> Ansi256Color
Expand description
Lossily convert from any color to 256-color
As the palette for 4-bit colors is terminal/user defined, a palette::Palette
must be
provided to match against.