pub enum MarkerKind {
Plain,
PromptStart,
CommandStart,
OutputStart,
CommandFinished(Option<i32>),
}Expand description
What a marker means (#158). A plain add_marker decoration carries no
semantics (MarkerKind::Plain); OSC 133 shell-integration marks carry the
command-boundary role (prompt/command/output start, or command finished with
its optional exit code). The engine only parses and anchors these — the
success/failure colour, earcon and prompt-to-prompt navigation are consumer
policy (ADR-0017), driven off the kind + exit the wire (#159) carries.
Variants§
Plain
A add_marker decoration anchor (#118) — no OSC-133 semantics.
PromptStart
OSC 133;A — the shell prompt begins here.
CommandStart
OSC 133;B — the typed command begins here (the prompt ended).
OutputStart
OSC 133;C — the command was submitted; its output begins here.
CommandFinished(Option<i32>)
OSC 133;D[;exit] — the command finished, with its exit code if reported
(absent, empty or non-numeric → None).
Trait Implementations§
Source§impl Clone for MarkerKind
impl Clone for MarkerKind
Source§fn clone(&self) -> MarkerKind
fn clone(&self) -> MarkerKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more