Macro term_ctrl::rgb_bg[][src]

macro_rules! rgb_bg {
    ($red : expr, $green : expr, $blue : expr) => { ... };
}
Expand description

Constructs an RGB background colour code set (to be used in a control sequence)

Examples:

// Get the RGB codes
assert_eq!("48;2;180;15;70", rgb_bg!(180, 15, 70));
// Use in a sequence
assert_eq!("\u{1B}[48;2;180;15;70m", seq!(rgb_bg!(180, 15, 70)));