pub struct CommandLine {
pub line: usize,
pub command: String,
pub exit: Option<i32>,
}Expand description
One executed shell command recovered from OSC-133 marks (#166), for
screen-reader command navigation. The consumer jumps prompt-to-prompt over
these and announces command + a success/fail signal from exit.
Fields§
§line: usizeThe command’s jump anchor as a document line — the logical-line index of
the CommandStart(B) mark within Term::accessible_text, so the consumer
reveals the right row of the accessible view (soft-wrapped rows collapse to
one logical line). This is core’s analog of VSCode’s
bufferToEditorLineMapping; the frame-mode web side has no wrap info to
map it itself.
command: StringThe typed command text, prompt- and output-excluded (B→C columns).
exit: Option<i32>The CommandFinished(D) exit code, if the shell reported one and the command has finished.
Trait Implementations§
Source§impl Clone for CommandLine
impl Clone for CommandLine
Source§fn clone(&self) -> CommandLine
fn clone(&self) -> CommandLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandLine
impl Debug for CommandLine
impl Eq for CommandLine
Source§impl PartialEq for CommandLine
impl PartialEq for CommandLine
impl StructuralPartialEq for CommandLine
Auto Trait Implementations§
impl Freeze for CommandLine
impl RefUnwindSafe for CommandLine
impl Send for CommandLine
impl Sync for CommandLine
impl Unpin for CommandLine
impl UnsafeUnpin for CommandLine
impl UnwindSafe for CommandLine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more