[][src]Macro term_ctrl::seq

macro_rules! seq {
    ($n1:expr, $($n2:expr),*) => { ... };
    ($n1:expr, $($n2:expr,)*) => { ... };
    ($n:expr) => { ... };
    () => { ... };
}

Constructs a control sequence

A sequence can be created with one or more numbers separated by commas.

Examples:

// Bold
assert_eq!("\u{1B}[1m", seq!(1));
// Red + bold + underline
assert_eq!("\u{1B}[31;1;4m", seq!(31,1,4));