Skip to main content

animate_to

Function animate_to 

Source
pub fn animate_to(target: Option<Target>)
Available on crate feature print only.
Expand description

Set the target for animation messages (prompts and bars)

By default, animation messages emit to stdout if stdout is terminal, and stderr if stderr is terminal. Otherwise, animation messages are not emitted. You can turn off animation messages by passing in None. Note this will only affect messages printed after the call.

See also cu::cli::print_to

// force animation to go to stderr even if stdout is terminal
cu::cli::animate_to(Some(cu::cli::Target::Stderr));