pub fn set_tty_detector(detector: fn() -> bool)
Overrides the detector used to check whether stdout is a TTY.
Accepts a fn pointer or a non-capturing closure.
fn