1/// An example how to execute the ANSI escape sequence.
2use std::io::{Result, Write};
3
4use anes::execute;
5
6fn main() -> Result<()> {
7 let mut stdout = std::io::stdout();
8 execute!(
9 &mut stdout,
10 anes::SaveCursorPosition,
11 anes::MoveCursorTo(10, 10),
12 anes::RestoreCursorPosition
13 )?;
14 Ok(())
15}
16