Function calypso_base::ui::parse_color_pref
source · pub fn parse_color_pref(pref: &str, stream: Stream) -> ColorChoiceExpand description
Parse a color preference (always, ansi, auto, anything else: auto) to
a color preference. Uses atty internally to test if the output stream
is a TTY.