Registry / cli / crossterm

crossterm

JSON →
library0.29.0rscratesunverified

A cross-platform terminal library for manipulating terminals, including cursor movement, styling, and input handling.

# Cargo.toml [dependencies] crossterm = "0.29.0"
INSTALL
IMPORT
SIG · CROSSTERM
C
crossterm
clirustv0.29.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.

enable_raw_mode
use crossterm::terminal::enable_raw_mode;

Enables raw mode for terminal input handling.

use crossterm::terminal::{enable_raw_mode, disable_raw_mode}; fn main() -> std::io::Result<()> { enable_raw_mode()?; // ... terminal operations ... disable_raw_mode()?; Ok(()) }
Debug
Known issues
gotchaRaw mode must be disabled before the program exits to avoid leaving the terminal in an unusable state.
fix
Ensure disable_raw_mode() is called on all exit paths, or use a guard type like crossterm::terminal::RawModeGuard.
affects: >=0.0.0
Upgrade
Version history
0.29.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
crossterm — cargo add crossterm · libregistry