1 /// An example how to use the ANSI escape sequence.
2 use std::io::{Result, Write};
3 
4 use anes;
5 
main() -> Result<()>6 fn 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