narju/colours.rs
1//! Terminal colour constants for narju.
2//!
3//! Shared between `eval` (for prompts via `val_to_prompt`) and `repl`
4//! (for the interactive REPL). ANSI escape codes; harmless when written
5//! to non-terminal sinks (rustyline handles them; `HeadlessIo` never
6//! displays them since it has no real I/O).
7
8/// Reset all attributes.
9pub const RESET: &str = "\x1b[0m";
10/// Bold.
11pub const BOLD: &str = "\x1b[1m";
12/// Dim grey.
13pub const DIM: &str = "\x1b[38;5;240m";
14/// Primary accent.
15pub const ROSE: &str = "\x1b[38;5;211m";
16/// Output values.
17pub const PETAL: &str = "\x1b[38;5;182m";
18/// Secondary / dim text.
19pub const THORN: &str = "\x1b[38;5;102m";
20/// Numbers.
21pub const STEM: &str = "\x1b[38;5;150m";
22/// Symbols and quoted data.
23pub const BLOOM: &str = "\x1b[38;5;147m";
24/// Brackets.
25pub const BRACK: &str = "\x1b[38;5;246m";
26/// Errors.
27pub const ERR: &str = "\x1b[38;5;203m";
28/// Warnings.
29pub const WARN: &str = "\x1b[38;5;221m";
30/// Keywords.
31pub const KW: &str = "\x1b[38;5;175m";