Skip to main content

is_progress_session

Function is_progress_session 

Source
pub fn is_progress_session(quiet: bool, tui: bool) -> bool
Available on crate feature cli-progress only.
Expand description

Should the inline progress line render? Requires an interactive terminal on both stdout and stderr (progress draws to stderr; the piped-stdout fallback is keyed on stdout per the issue), and neither --quiet nor --tui. On any non-TTY or when suppressed the caller keeps the periodic log output instead.