Registry / cli / term-size

term-size

JSON →
library0.3.2rscratesunverified

functions for determining terminal sizes and dimensions

# Cargo.toml [dependencies] term_size = "0.3.2"
INSTALL
IMPORT
SIG · TERM-SIZE
T
term-size
clirustv0.3.2
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.

dimensions
use term_size::dimensions;

Get terminal width and height.

use term_size::dimensions; fn main() { if let Some((w, h)) = dimensions() { println!("Terminal size: {}x{}", w, h); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
Resources
term-size — cargo add term-size · libregistry