gleamtea/term
Low-level ANSI/VT terminal escape sequences.
Thin bindings to beamtea’s beamtea_term. Every function returns a
String you can embed directly in a view or concatenate with other
styled text. The styling helpers (bold, faint, …)
wrap their argument and reset afterwards, so they nest cleanly.
Values
pub fn bg(index: Int) -> String
A 256-colour background escape for an xterm colour index (0–255).
pub fn bg_rgb(r: Int, g: Int, b: Int) -> String
A truecolor (24-bit) background escape for an RGB triple (each 0–255).
pub fn fg(index: Int) -> String
A 256-colour foreground escape for an xterm colour index (0–255).
pub fn fg_rgb(r: Int, g: Int, b: Int) -> String
A truecolor (24-bit) foreground escape for an RGB triple (each 0–255).
pub fn rule_of(width: Int, glyph: String) -> String
A horizontal rule of width repetitions of glyph.