Function libnotcurses_sys::ffi::ncplane_set_fg_rgb8 [−][src]
pub unsafe extern "C" fn ncplane_set_fg_rgb8(
n: *mut ncplane,
r: c_uint,
g: c_uint,
b: c_uint
) -> c_int
Expand description
Set the current fore/background color using RGB specifications. If the terminal does not support directly-specified 3x8b cells (24-bit “TrueColor”, indicated by the “RGB” terminfo capability), the provided values will be interpreted in some lossy fashion. None of r, g, or b may exceed 255. “HP-like” terminals require setting foreground and background at the same time using “color pairs”; Notcurses will manage color pairs transparently.