1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use Color32;
const CURSOR_COLOR: Color32 = from_rgba_unmultiplied_const;
const PROMPT_COLOR: Color32 = GREEN;
const RECORD_COLOR: Color32 = WHITE;
/// A terminal's color scheme — one color per visible part.
///
/// ```text
/// ┌──────────────────────────────────────────┐
/// │ output line one │
/// │ output line two │
/// │ > hello world█ │
/// └──────────────────────────────────────────┘
/// ```
///
/// - `prompt_color` — the leading prompt (the `> ` above).
/// - `record_color` — **both** the text you type (`hello world`) **and** the
/// output written by [`Terminal::writeln_grid`](crate::Terminal::writeln_grid)
/// (`output line one`, …).
/// - `cursor_color` — the block cursor (`█`), drawn only while the terminal has
/// focus.
/// The default scheme: a translucent white cursor, a green prompt, and white text.