macro_rules! move_right {
($n:literal) => { ... };
($n:expr) => { ... };
}Expand description
Moves cursor right by N positions.
Equivalent to CSI Pn C.
If used with literal, produces &'static str, otherwise produces String.
§Example
ⓘ
assert_eq!(formatc!("{'mr5}"), codes::move_right!(5));
assert_eq!(formatc!("{'ml5}"), codes::move_left!(5));
printcln!("{'clear}{'mr7}there{'ml11}hello");§Result in terminal
