pub struct Terminal {
pub matches: Vec<RangeInclusive<Point>>,
pub last_content: TerminalContent,
pub selection_head: Option<Point>,
pub breadcrumb_text: String,
pub foreground_process_info: Option<LocalProcessInfo>,
/* private fields */
}
Fields§
§matches: Vec<RangeInclusive<Point>>
§last_content: TerminalContent
§selection_head: Option<Point>
§foreground_process_info: Option<LocalProcessInfo>
Implementations§
source§impl Terminal
impl Terminal
pub fn last_content(&self) -> &TerminalContent
pub fn activate_match(&mut self, index: usize)
pub fn select_matches(&mut self, matches: Vec<RangeInclusive<AlacPoint>>)
pub fn select_all(&mut self)
pub fn copy(&mut self)
pub fn clear(&mut self)
sourcepub fn set_size(&mut self, new_size: TerminalSize)
pub fn set_size(&mut self, new_size: TerminalSize)
Resize the terminal and the PTY.
pub fn input(&mut self, input: String)
pub fn input_bytes(&mut self, input: Vec<u8>)
pub fn try_keystroke( &mut self, keystroke: &Keystroke, alt_is_meta: bool ) -> bool
pub fn try_modifiers_change(&mut self, modifiers: &Modifiers) -> bool
pub fn try_sync(&mut self, cx: &mut ModelContext<'_, Self>)
pub fn focus_in(&self)
pub fn focus_out(&mut self)
pub fn mouse_changed(&mut self, point: AlacPoint, side: AlacDirection) -> bool
pub fn mouse_mode(&self, shift: bool) -> bool
pub fn mouse_move(&mut self, e: &MouseMoveEvent, origin: Point<Pixels>)
pub fn mouse_drag( &mut self, e: MouseMoveEvent, origin: Point<Pixels>, region: Bounds<Pixels> )
pub fn mouse_down(&mut self, e: &MouseDownEvent, origin: Point<Pixels>)
pub fn mouse_up( &mut self, e: &MouseUpEvent, origin: Point<Pixels>, cx: &mut ModelContext<'_, Self> )
sourcepub fn scroll_wheel(&mut self, e: ScrollWheelEvent, origin: Point<Pixels>)
pub fn scroll_wheel(&mut self, e: ScrollWheelEvent, origin: Point<Pixels>)
Scroll the terminal
pub fn find_matches( &mut self, searcher: RegexSearch, cx: &mut ModelContext<'_, Self> ) -> Task<Vec<RangeInclusive<AlacPoint>>>
pub fn title(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl !UnwindSafe for Terminal
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