pub fn to_uncurses_color(c: Color) -> Option<Color>Expand description
Convert a widget-library color into an uncurses color.
§Parameters
c- the source color to encode.
§Returns
None for [RtColor::Reset], because reset means “no explicit color” in
the target style. All other variants return Some: named colors map to
named CzColor values, [RtColor::Indexed] keeps the same palette index,
and [RtColor::Rgb] keeps the same red, green, and blue channels.
§Errors
This conversion is infallible.
§Panics
Does not panic.
§Usage note
This helper does not downsample colors for terminal capability profiles; that happens later in the uncurses renderer.