Skip to main content

set_tty_detector

Function set_tty_detector 

Source
pub fn set_tty_detector(detector: fn() -> bool)
Expand description

Overrides the detector used to check whether stdout is a TTY.

Accepts a fn pointer or a non-capturing closure.