Crates.io | ctrem |
lib.rs | ctrem |
version | 0.1.4 |
source | src |
created_at | 2022-09-25 07:52:23.082162 |
updated_at | 2022-09-26 12:25:24.383151 |
description | Print colored and styled text |
homepage | https://github.com/Brijeshkrishna/cterm |
repository | |
max_upload_size | |
id | 673476 |
size | 13,527 |
$ctrem "[bold]H[/]ello"
use ctrem::*;
cprintln("[bold][blink]Hello[/], world![/]");
prints Hello, world! in bold and blinks Hello
Available style
Available colors
Supported 8bit (256) also 24 bit (16.7 million) colors
Foreground is default , for background use ' *
'
Cterm supported different styles and colors styles or colors palette must be inclosed in [palette] and ends with [/]
For bold text use [bold]some text[/]
For underline text use [underline] some text[/]
For RGB colored text use [rgb 25,55,55]some text[/]
or [#b366b1]some text[/]
For 4bit colors use [color 4]some text[/]
command palette must end , use [//]
to end all
Foreground is default , for background use ' *
'
use ctrem::*;
fn main(){
cprintln("[bold][blink][red]Hello[//],[green]world[*blue]![//]");
}