pub fn resolve_ui_mode( requested: UiMode, stdin_is_tty: bool, stdout_is_tty: bool, term: Option<&str>, ) -> Result<ResolvedUiMode, String>