[−][src]Struct alacritty_terminal::term::Term
Fields
dirty: bool
Terminal requires redraw.
visual_bell: VisualBell
Visual bell configuration and status.
is_focused: bool
Terminal focus controlling the cursor shape.
vi_mode_cursor: ViModeCursor
Cursor for keyboard selection.
selection: Option<Selection>
Implementations
impl<T> Term<T>
[src]
pub fn start_search(&mut self, search: &str)
[src]
Enter terminal buffer search mode.
pub fn cancel_search(&mut self)
[src]
Cancel active terminal buffer search.
pub fn search_next(
&self,
origin: Point<usize>,
direction: Direction,
side: Side,
max_lines: Option<usize>
) -> Option<RangeInclusive<Point<usize>>>
[src]
&self,
origin: Point<usize>,
direction: Direction,
side: Side,
max_lines: Option<usize>
) -> Option<RangeInclusive<Point<usize>>>
Get next search match in the specified direction.
pub fn regex_search_left(
&self,
start: Point<usize>,
end: Point<usize>
) -> Option<RangeInclusive<Point<usize>>>
[src]
&self,
start: Point<usize>,
end: Point<usize>
) -> Option<RangeInclusive<Point<usize>>>
Find the next regex match to the left of the origin point.
The origin is always included in the regex.
pub fn regex_search_right(
&self,
start: Point<usize>,
end: Point<usize>
) -> Option<RangeInclusive<Point<usize>>>
[src]
&self,
start: Point<usize>,
end: Point<usize>
) -> Option<RangeInclusive<Point<usize>>>
Find the next regex match to the right of the origin point.
The origin is always included in the regex.
pub fn bracket_search(&self, point: Point<usize>) -> Option<Point<usize>>
[src]
Find next matching bracket.
pub fn semantic_search_left(&self, point: Point<usize>) -> Point<usize>
[src]
Find left end of semantic block.
pub fn semantic_search_right(&self, point: Point<usize>) -> Point<usize>
[src]
Find right end of semantic block.
pub fn line_search_left(&self, point: Point<usize>) -> Point<usize>
[src]
Find the beginning of the current line across linewraps.
pub fn line_search_right(&self, point: Point<usize>) -> Point<usize>
[src]
Find the end of the current line across linewraps.
impl<T> Term<T>
[src]
pub fn scroll_display(&mut self, scroll: Scroll) where
T: EventListener,
[src]
T: EventListener,
pub fn new<C>(config: &Config<C>, size: &SizeInfo, event_proxy: T) -> Term<T>
[src]
pub fn update_config<C>(&mut self, config: &Config<C>) where
T: EventListener,
[src]
T: EventListener,
pub fn selection_to_string(&self) -> Option<String>
[src]
Convert the active selection to a String.
pub fn bounds_to_string(&self, start: Point<usize>, end: Point<usize>) -> String
[src]
Convert range between two points to a String.
pub fn visible_to_buffer(&self, point: Point) -> Point<usize>
[src]
pub fn grid(&self) -> &Grid<Cell>
[src]
Access to the raw grid data structure.
This is a bit of a hack; when the window is closed, the event processor serializes the grid state to a file.
pub fn renderable_cells<'b, C>(
&'b self,
config: &'b Config<C>
) -> RenderableCellsIter<C>ⓘImportant traits for RenderableCellsIter<'a, C>
impl<'a, C> Iterator for RenderableCellsIter<'a, C> type Item = RenderableCell;
[src]
&'b self,
config: &'b Config<C>
) -> RenderableCellsIter<C>ⓘ
Important traits for RenderableCellsIter<'a, C>
impl<'a, C> Iterator for RenderableCellsIter<'a, C> type Item = RenderableCell;
Iterate over the renderable cells in the terminal.
A renderable cell is any cell which has content other than the default background color. Cells with an alternate background color are considered renderable as are cells with any text content.
pub fn resize(&mut self, size: &SizeInfo)
[src]
Resize terminal to new dimensions.
pub fn mode(&self) -> &TermMode
[src]
Active terminal modes.
pub fn swap_alt(&mut self)
[src]
Swap primary and alternate screen buffer.
pub fn background_color(&self) -> Rgb
[src]
pub fn exit(&mut self) where
T: EventListener,
[src]
T: EventListener,
pub fn toggle_vi_mode(&mut self)
[src]
Toggle the vi mode.
pub fn vi_motion(&mut self, motion: ViMotion) where
T: EventListener,
[src]
T: EventListener,
Move vi mode cursor.
pub fn vi_goto_point(&mut self, point: Point<usize>) where
T: EventListener,
[src]
T: EventListener,
Move vi cursor to absolute point in grid.
pub fn scroll_to_point(&mut self, point: Point<usize>) where
T: EventListener,
[src]
T: EventListener,
Scroll display to point if it is outside of viewport.
pub fn expand_wide(
&self,
point: Point<usize>,
direction: Direction
) -> Point<usize>
[src]
&self,
point: Point<usize>,
direction: Direction
) -> Point<usize>
Jump to the end of a wide cell.
pub fn semantic_escape_chars(&self) -> &str
[src]
Trait Implementations
impl<T> Dimensions for Term<T>
[src]
fn cols(&self) -> Column
[src]
fn screen_lines(&self) -> Line
[src]
fn total_lines(&self) -> usize
[src]
fn history_size(&self) -> usize
[src]
impl<T: EventListener> Handler for Term<T>
[src]
fn input(&mut self, c: char)
[src]
A character to be displayed.
fn decaln(&mut self)
[src]
fn goto(&mut self, line: Line, col: Column)
[src]
fn goto_line(&mut self, line: Line)
[src]
fn goto_col(&mut self, col: Column)
[src]
fn insert_blank(&mut self, count: Column)
[src]
fn move_up(&mut self, lines: Line)
[src]
fn move_down(&mut self, lines: Line)
[src]
fn move_forward(&mut self, cols: Column)
[src]
fn move_backward(&mut self, cols: Column)
[src]
fn identify_terminal<W: Write>(&mut self, writer: &mut W)
[src]
fn device_status<W: Write>(&mut self, writer: &mut W, arg: usize)
[src]
fn move_down_and_cr(&mut self, lines: Line)
[src]
fn move_up_and_cr(&mut self, lines: Line)
[src]
fn put_tab(&mut self, count: i64)
[src]
Insert tab at cursor position.
fn backspace(&mut self)
[src]
Backspace count
characters.
fn carriage_return(&mut self)
[src]
Carriage return.
fn linefeed(&mut self)
[src]
Linefeed.
fn bell(&mut self)
[src]
Set current position as a tabstop.
fn substitute(&mut self)
[src]
fn newline(&mut self)
[src]
Run LF/NL.
LF/NL mode has some interesting history. According to ECMA-48 4th edition, in LINE FEED mode,
The execution of the formatter functions LINE FEED (LF), FORM FEED (FF), LINE TABULATION (VT) cause only movement of the active position in the direction of the line progression.
In NEW LINE mode,
The execution of the formatter functions LINE FEED (LF), FORM FEED (FF), LINE TABULATION (VT) cause movement to the line home position on the following line, the following form, etc. In the case of LF this is referred to as the New Line (NL) option.
Additionally, ECMA-48 4th edition says that this option is deprecated. ECMA-48 5th edition only mentions this option (without explanation) saying that it's been removed.
As an emulator, we need to support it since applications may still rely on it.
fn set_horizontal_tabstop(&mut self)
[src]
fn scroll_up(&mut self, lines: Line)
[src]
fn scroll_down(&mut self, lines: Line)
[src]
fn insert_blank_lines(&mut self, lines: Line)
[src]
fn delete_lines(&mut self, lines: Line)
[src]
fn erase_chars(&mut self, count: Column)
[src]
fn delete_chars(&mut self, count: Column)
[src]
fn move_backward_tabs(&mut self, count: i64)
[src]
fn move_forward_tabs(&mut self, count: i64)
[src]
fn save_cursor_position(&mut self)
[src]
fn restore_cursor_position(&mut self)
[src]
fn clear_line(&mut self, mode: LineClearMode)
[src]
fn set_color(&mut self, index: usize, color: Rgb)
[src]
Set the indexed color value.
fn dynamic_color_sequence<W: Write>(
&mut self,
writer: &mut W,
code: u8,
index: usize,
terminator: &str
)
[src]
&mut self,
writer: &mut W,
code: u8,
index: usize,
terminator: &str
)
Write a foreground/background color escape sequence with the current color.
fn reset_color(&mut self, index: usize)
[src]
Reset the indexed color to original value.
fn clipboard_store(&mut self, clipboard: u8, base64: &[u8])
[src]
Store data into clipboard.
fn clipboard_load(&mut self, clipboard: u8, terminator: &str)
[src]
Load data from clipboard.
fn clear_screen(&mut self, mode: ClearMode)
[src]
fn clear_tabs(&mut self, mode: TabulationClearMode)
[src]
fn reset_state(&mut self)
[src]
Reset all important fields in the term struct.
fn reverse_index(&mut self)
[src]
fn terminal_attribute(&mut self, attr: Attr)
[src]
Set a terminal attribute.
fn set_mode(&mut self, mode: Mode)
[src]
fn unset_mode(&mut self, mode: Mode)
[src]
fn set_scrolling_region(&mut self, top: usize, bottom: Option<usize>)
[src]
fn set_keypad_application_mode(&mut self)
[src]
fn unset_keypad_application_mode(&mut self)
[src]
fn configure_charset(&mut self, index: CharsetIndex, charset: StandardCharset)
[src]
fn set_active_charset(&mut self, index: CharsetIndex)
[src]
fn set_cursor_style(&mut self, style: Option<CursorStyle>)
[src]
fn set_title(&mut self, title: Option<String>)
[src]
fn push_title(&mut self)
[src]
fn pop_title(&mut self)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Term<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Term<T> where
T: Send,
T: Send,
impl<T> Sync for Term<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Term<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Term<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,