Registry / utility / terminal-light

terminal-light

JSON →
library1.8.0rscratesunverified

Detects whether the terminal background is light or dark.

# Cargo.toml [dependencies] terminal-light = "1.8.0"
INSTALL
IMPORT
SIG · TERMINAL-LIGHT
T
terminal-light
utilityrustv1.8.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.

luma
use terminal_light::luma;

Get the terminal background brightness.

use terminal_light::luma; fn main() { let brightness = luma(); println!("Terminal brightness: {}", brightness); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
terminal-light — cargo add terminal-light · libregistry