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