Registry / utility / isatty

isatty

JSON →
library0.2.0rscratesunverified

Deprecated -- use the `atty` crate

# Cargo.toml [dependencies] isatty = "0.2.0"
INSTALL
IMPORT
SIG · ISATTY
I
isatty
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

isatty
use isatty::isatty;

Check if stdin is a terminal (deprecated).

use isatty::isatty; fn main() { if isatty(std::io::stdin()) { println!("stdin is a terminal"); } }
Debug
Known issues
breakingCrate is deprecated; use `atty` instead
fix
Replace `isatty` dependency with `atty`
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
isatty — cargo add isatty · libregistry