Enum termwiz::escape::osc::FinalTermSemanticPrompt
source · pub enum FinalTermSemanticPrompt {
FreshLine,
FreshLineAndStartPrompt {
aid: Option<String>,
cl: Option<FinalTermClick>,
},
MarkEndOfCommandWithFreshLine {
aid: Option<String>,
cl: Option<FinalTermClick>,
},
StartPrompt(FinalTermPromptKind),
MarkEndOfPromptAndStartOfInputUntilNextMarker,
MarkEndOfPromptAndStartOfInputUntilEndOfLine,
MarkEndOfInputAndStartOfOutput {
aid: Option<String>,
},
CommandStatus {
status: i32,
aid: Option<String>,
},
}
Expand description
https://gitlab.freedesktop.org/Per_Bothner/specifications/blob/master/proposals/semantic-prompts.md
Variants§
FreshLine
Do a “fresh line”; if the cursor is at the left margin then do nothing, otherwise perform the equivalent of “\r\n”
FreshLineAndStartPrompt
Do a “fresh line” as above and then place the terminal into prompt mode; the output between now and the next marker is considered part of the prompt.
MarkEndOfCommandWithFreshLine
Denote the end of a command output and then perform FreshLine
StartPrompt(FinalTermPromptKind)
Start a prompt
MarkEndOfPromptAndStartOfInputUntilNextMarker
Mark the end of a prompt and the start of the user input. The terminal considers all subsequent output to be “user input” until the next semantic marker.
MarkEndOfPromptAndStartOfInputUntilEndOfLine
Mark the end of a prompt and the start of the user input. The terminal considers all subsequent output to be “user input” until the end of the line.
MarkEndOfInputAndStartOfOutput
CommandStatus
Indicates the result of the command
Trait Implementations§
source§impl Clone for FinalTermSemanticPrompt
impl Clone for FinalTermSemanticPrompt
source§fn clone(&self) -> FinalTermSemanticPrompt
fn clone(&self) -> FinalTermSemanticPrompt
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FinalTermSemanticPrompt
impl Debug for FinalTermSemanticPrompt
source§impl Display for FinalTermSemanticPrompt
impl Display for FinalTermSemanticPrompt
source§impl PartialEq for FinalTermSemanticPrompt
impl PartialEq for FinalTermSemanticPrompt
source§fn eq(&self, other: &FinalTermSemanticPrompt) -> bool
fn eq(&self, other: &FinalTermSemanticPrompt) -> bool
self
and other
values to be equal, and is used
by ==
.