Skip to main content

iascii/render/
mod.rs

1pub mod ansi;
2
3pub use ansi::render_ansi;
4
5/// Target terminal color capability when rendering a `Grid`.
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
7pub enum ColorDepth {
8    /// 24-bit RGB true color (`\x1b[38;2;R;G;Bm`).
9    #[default]
10    TrueColor,
11    /// 8-bit / 256-color palette (`\x1b[38;5;Nm`).
12    Ansi256,
13    /// Standard 4-bit / 16-color ANSI palette (`\x1b[30m`–`\x1b[37m`, `\x1b[90m`–`\x1b[97m`).
14    Ansi16,
15}