Registry / cli / nu-ansi-term

nu-ansi-term

JSON →
library0.50.3rscratesunverified

ANSI terminal colors and styles library for Nushell, supporting bold, underline, and more.

# Cargo.toml [dependencies] nu-ansi-term = "0.50.3"
INSTALL
IMPORT
SIG · NU-ANSI-TERM
N
nu-ansi-term
clirustv0.50.3
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.

Style
use nu_ansi_term::Style;

Creates a bold red style and paints text.

use nu_ansi_term::Style; fn main() { let style = Style::new().bold().fg(nu_ansi_term::Color::Red); println!("{}", style.paint("Hello, world!")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.50.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
nu-ansi-term — cargo add nu-ansi-term · libregistry