Registry / utility / fwdansi

fwdansi

JSON →
library1.1.0rscratesunverified

Forwards a byte string with ANSI escape codes to a termcolor terminal.

# Cargo.toml [dependencies] fwdansi = "1.1.0"
INSTALL
IMPORT
SIG · FWDANSI
F
fwdansi
utilityrustv1.1.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.

forward_ansi
use fwdansi::forward_ansi;

Writes ANSI-colored text to the terminal using termcolor.

use fwdansi::forward_ansi; use termcolor::{StandardStream, ColorChoice}; fn main() { let mut stdout = StandardStream::stdout(ColorChoice::Always); forward_ansi(&mut stdout, b"\x1b[31mHello\x1b[0m\n").unwrap(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fwdansi — cargo add fwdansi · libregistry