foundry_common::term

Function with_spinner_reporter

Source
pub fn with_spinner_reporter<T>(f: impl FnOnce() -> T) -> T
Expand description

If the output medium is terminal, this calls f within the SpinnerReporter that displays a spinning cursor to display solc progress.

If no terminal is available this falls back to common println! in [BasicStdoutReporter].