anes

Macro csi

Source
macro_rules! csi {
    ($($arg:expr),*) => { ... };
}
Expand description

Creates a control sequence.

This macro prepends provided sequence with the control sequence introducer ESC [ (\x1B[).

ยงExamples

use anes::csi;

assert_eq!(csi!("?1049h"), "\x1B[?1049h");