[−][src]Macro anes::execute
Executes ANSI escape sequence(s).
What does execute mean exactly? All sequences are queued with the
write!($dst, "{}", $sequence) macro and then the
flush method
is called.
Check the queue! macro if you'd like queue sequences
and execute them later.
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(()) }