Function feroxbuster::utils::ferox_print

source ·
pub fn ferox_print(msg: &str, bar: &ProgressBar)
Expand description

Simple helper to abstract away the check for an attached terminal.

If a terminal is attached, progress bars are visible and the progress bar is used to print to stderr. The progress bar must be used when bars are visible in order to not jack up any progress bar output (the bar knows how to print above itself)

If a terminal is not attached, msg is printed to stdout, with its ansi color codes stripped.

additionally, provides a location for future printing options (no color, etc) to be handled