SergioBenitez / yansi

A dead simple ANSI terminal color painting library for Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yansi logo  Yansi

A dead simple ANSI terminal color painting library.

Build Status Current Crates.io Version Documentation

Usage

In your Cargo.toml:

[dependencies]
yansi = "1.0"

In your source code:

use yansi::Paint;

println!("Testing, {}, {}, {}!",
    "Ready".bold(),
    "Set".black().on_yellow().invert().italic(),
    "STOP".white().on_red().bright().underline().bold());

> Testing, Ready, Set, STOP!

See the rustdocs for complete usage details.

Features

Why yet another ANSI terminal coloring library? Here are some reasons:

License

yansi is licensed under either of the following, at your option:

About

A dead simple ANSI terminal color painting library for Rust.

License:Apache License 2.0


Languages

Language:Rust 100.0%