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