blob: e79a6580e301ef9d1f289854f8eb7adbfe7db6ad [file] [log] [blame] [edit]
/// An example how to use the ANSI escape sequence.
use std::io::{Result, Write};
fn main() -> Result<()> {
let mut stdout = std::io::stdout();
write!(stdout, "{}", anes::SaveCursorPosition)?;
write!(stdout, "{}", anes::RestoreCursorPosition)?;
stdout.flush()?;
Ok(())
}