rl_lang/repl/lines_types.rs
1//! Output line variants used by the REPL output buffer.
2use ratatui::style::Style;
3
4/// A line in the REPL output buffer.
5pub enum OutputLine {
6 /// Raw user input - rendered with `>>` or `..` prompt and syntax highlighting.
7 Input(String),
8 /// Successfully evaluated input - stored for `:save` but not rendered.
9 ValidInput(String),
10 /// Output produced by evaluating an expression (e.g. a value or `println` output).
11 Result(String),
12 /// An error message - rendered in red with a `✗` prefix.
13 Error(String),
14 /// An informational message - rendered in dark gray (used by commands and startup).
15 Info(String),
16 /// A pre-styled run of `(text, Style)` pairs - used by `:help` and `:stdlib`.
17 Styled(Vec<(String, Style)>),
18 /// A horizontal separator line.
19 Separator,
20}