pub fn stdout(color_choice: ColorChoice) -> StandardStream
Returns a possibly buffered writer to stdout for the given color choice.
The writer returned is either line buffered or block buffered. The decision between these two is made automatically based on whether a tty is attached to stdout or not. If a tty is attached, then line buffering is used. Otherwise, block buffering is used. In general, block buffering is more efficient, but may increase the time it takes for the end user to see the first bits of output.
If you need more fine grained control over the buffering mode, then use one
The color choice given is passed along to the underlying writer. To
completely disable colors in all cases, use