use-terminal
Terminal capability primitives for RustUse CLI-adjacent code.
This crate provides terminal width and height wrapper types, color support enums, interactivity enums, and dependency-free detection helpers. It does not implement terminal UI, curses, layout, or styling.
Example
use ;
let size = new;
let color = from_env_values;
assert_eq!;
assert_eq!;
# Ok::
Scope
Use this crate for capability vocabulary and basic std-based detection only.