//! Runtime Target State (e.g. GUI vs TUI).
usestd::sync::atomic::{AtomicBool, Ordering};staticTUI_TARGET_ACTIVE: AtomicBool =AtomicBool::new(false);/// Checks if the current runtime target is TUI.
pubfnis_tui_target()->bool{TUI_TARGET_ACTIVE.load(Ordering::SeqCst)}/// Sets whether the TUI target is active (useful for testing and dual-mode execution).
pubfnset_tui_target_active(active:bool){TUI_TARGET_ACTIVE.store(active,Ordering::SeqCst);}