rusty_bubbletea/tty_unix.rs
1//! Cleanroom Rust port of upstream Go source file: `tty_unix.go`
2//! Upstream Target Tag / Version: `v2.0.8`
3//!
4//! <public-docs>
5//! # TTY (Unix)
6//!
7//! POSIX Unix TTY handle and raw mode initialization.
8//! </public-docs>
9
10/// Unix TTY initialization check.
11pub fn is_unix_tty() -> bool {
12 !cfg!(target_os = "windows")
13}