cod 9.0.4

A mini, functional terminal drawing utility.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cod::prelude::*;

fn main() {
    let messages = [
        (1, "Failure"),
        (2, "Success"),
        (3, "Warning"),
        (4, "Information"),
    ];

    for (color, message) in messages {
        color::with::fg(color, || {
            print!("{message}");
        });

        println!("!");
    }
}