macro_rules! splat {
($out: expr, $($expr:expr),* $(,)?) => { ... };
}Expand description
Writes multiple VT escape sequences to a byte buffer.
Takes a mutable reference to a Vec<u8> and any number of expressions
that implement BufferWrite. Each expression is written sequentially
to the buffer.
ยงExamples
use extui::{splat, vt::{MoveCursor, CLEAR_STYLE}};
let mut buf = Vec::new();
splat!(&mut buf, MoveCursor(0, 0), CLEAR_STYLE);