1 use once_cell::sync::OnceCell;
3 /// Whether to enable accessible output (removes info output and reduces other
4 /// output, removes visual markers like '[' and ']').
5 /// Removes th progress bar as well
6 pub static ACCESSIBLE: OnceCell<bool> = OnceCell::new();
8 pub fn is_running_in_accessible_mode() -> bool {
9 ACCESSIBLE.get().copied().unwrap_or(false)
12 pub fn set_accessible(value: bool) {
13 if ACCESSIBLE.get().is_none() {
14 ACCESSIBLE.set(value).unwrap();