termal 4.2.1

Rust library for fancy colored cli using ansi codes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use termal::{
    Result,
    image::{self, RawImg},
};

fn main() -> Result<()> {
    let img_data = include_bytes!("img256.data");
    let img = RawImg::from_rgb(img_data.into(), 256, 256);
    let mut res = String::new();
    image::push_sixel(&mut res, &img);
    println!("{}", res);

    Ok(())
}