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