vtcode-core 0.98.7

Core library for VT Code - a Rust-based terminal coding agent
1
2
3
4
5
6
7
8
9
10
11
use std::sync::atomic::{AtomicBool, Ordering};

static TUI_MODE_ACTIVE: AtomicBool = AtomicBool::new(false);

pub fn set_tui_mode(active: bool) {
    TUI_MODE_ACTIVE.store(active, Ordering::SeqCst);
}

pub fn is_tui_mode() -> bool {
    TUI_MODE_ACTIVE.load(Ordering::SeqCst)
}