anstream

Function stdout

Source
pub fn stdout() -> Stdout
Available on crate feature auto only.
Expand description

Create an ANSI escape code compatible stdout

Note: Call AutoStream::lock in loops to avoid the performance hit of acquiring/releasing from the implicit locking in each std::io::Write call