Macro dinglebit_terminal::sgm
source · [−]macro_rules! sgm {
($e:expr) => { ... };
}
Expand description
Create a SetGraphicsMode using the given vector.
Examples
let s = sgm!(vec![OP_BOLD, FG_BLACK, BG_WHITE]).to_string();
assert_eq!(s, "\x1b[1;30;47m");