Skip to main content

Module tty

Module tty 

Source
Expand description

TTY detection capability shared across VT Code crates.

This module owns the canonical TtyExt extension trait for standard I/O streams. Both vtcode-core (crate::utils::tty) and vtcode-ui (crate::tui::utils::tty) re-export it so historical import paths keep resolving; extend the contract here instead of forking it per crate.

§Example

use std::io;
use vtcode_commons::tty::TtyExt;

if io::stdout().is_tty_ext() {
    // Terminal-specific features available.
}

Traits§

TtyExt
Extension trait for TTY detection on standard I/O streams.