Macro term_ctrl::c256_fg [−][src]
macro_rules! c256_fg { ($col : expr) => { ... }; }
Expand description
Constructs a 256-colour foreground (text) colour code set (to be used in a control sequence)
Examples:
// Get the codes assert_eq!("38;5;238", c256_fg!(238)); // Use in a sequence assert_eq!("\u{1B}[38;5;238m", seq!(c256_fg!(238)));