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)));