lealang_chalk_rs

Crates.iolealang_chalk_rs
lib.rslealang_chalk_rs
version
sourcesrc
created_at2025-01-30 11:36:52.357158+00
updated_at2025-02-09 14:47:02.74506+00
descriptionA crate which adds colors and styles to your terminal program
homepage
repositoryhttps://github.com/mrw1593/chalk_rs
max_upload_size
id1536260
Cargo.toml error:TOML parse error at line 27, column 1 | 27 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
AHQ (ahqsoftwares)

documentation

README

Chalk

Video Demo

A crate for terminal colors and styles

use chalk_rs::Chalk;
let mut chalk = Chalk::new();
chalk.red().println(&"This text is red");
chalk.bold().println(&"Now it's red AND bold");

That's an example of basic color. There are three types of color in chalk: BasicChalk, AnsiChalk, and RgbChalk.

use chalk_rs::Chalk;
let mut chalk = Chalk::new();
chalk.ansi(56).println(&"Purple-ish");
chalk.rgb(25, 125, 63).println(&"This color is ugly");

Chalk can aldo do styling! Here's an example:

use chalk_rs::Chalk;
let mut chalk = Chalk::new();
chalk.bold().println(&"Bold!");
Commit count: 119

cargo fmt