Skip to content

JimitSoni18/col-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

col-rs

a small rust library to print 24 bit colored terminal text


Usage

use col_rs::{Span, Weight};

fn main() {
	let span1 = Span::new("colo".to_string())
		.fg((234, 156, 128))
		.bg((90, 157, 255))
		.italic();

	let span2 = Span::new('-'.to_string());

	let span3 = Span::new("rs".to_string())
		.fg((255, 56, 56))
		.bg((68, 234, 158))
		.weight(Weight::Bold);

	println!("{span1}{span2}{span3}");
}

About

print colored terminal text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages