Macro anes::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");