Function grep_cli::stdout_buffered_line

source ·
pub fn stdout_buffered_line(color_choice: ColorChoice) -> StandardStream 
Expand description

Returns a line buffered writer to stdout for the given color choice.

This writer is useful when printing results directly to a tty such that users see output as soon as it’s written. The downside of this approach is that it can be slower, especially when there is a lot of output.

You might consider using stdout instead, which chooses the buffering strategy automatically based on whether stdout is connected to a tty.