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
sourceimpl Clone for FinalTermSemanticPrompt
impl Clone for FinalTermSemanticPrompt
sourcefn clone(&self) -> FinalTermSemanticPrompt
fn clone(&self) -> FinalTermSemanticPrompt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FinalTermSemanticPrompt
impl Debug for FinalTermSemanticPrompt
sourceimpl Display for FinalTermSemanticPrompt
impl Display for FinalTermSemanticPrompt
sourceimpl PartialEq<FinalTermSemanticPrompt> for FinalTermSemanticPrompt
impl PartialEq<FinalTermSemanticPrompt> for FinalTermSemanticPrompt
sourcefn eq(&self, other: &FinalTermSemanticPrompt) -> bool
fn eq(&self, other: &FinalTermSemanticPrompt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FinalTermSemanticPrompt) -> bool
fn ne(&self, other: &FinalTermSemanticPrompt) -> bool
This method tests for !=
.
impl Eq for FinalTermSemanticPrompt
impl StructuralEq for FinalTermSemanticPrompt
impl StructuralPartialEq for FinalTermSemanticPrompt
Auto Trait Implementations
impl RefUnwindSafe for FinalTermSemanticPrompt
impl Send for FinalTermSemanticPrompt
impl Sync for FinalTermSemanticPrompt
impl Unpin for FinalTermSemanticPrompt
impl UnwindSafe for FinalTermSemanticPrompt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more