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 pub static ACCESSIBLE: OnceCell<bool> = OnceCell::new();
7 pub fn is_running_in_accessible_mode() -> bool {
8 ACCESSIBLE.get().copied().unwrap_or(false)
11 pub fn set_accessible(value: bool) {
12 if ACCESSIBLE.get().is_none() {
13 ACCESSIBLE.set(value).unwrap();