pub struct FrameState {
pub cursor: CursorPaint,
pub selection: Option<SelectionRange>,
pub screen_reverse: bool,
pub preedit: Option<PreeditSpan>,
pub reserved_bottom_rows: u16,
pub rows: u16,
}Expand description
The frame-wide inputs every row of a screen reads.
Fields§
§cursor: CursorPaint§selection: Option<SelectionRange>§screen_reverse: bool?5 DECSCNM, xor’d against each cell’s SGR 7.
preedit: Option<PreeditSpan>§reserved_bottom_rows: u16§rows: u16Implementations§
Source§impl FrameState
impl FrameState
Sourcepub fn for_screen(
screen: &ScreenBuffer,
cursor_visible: bool,
viewport: u32,
selection: Option<SelectionRange>,
screen_reverse: bool,
preedit: Option<PreeditSpan>,
reserved_bottom_rows: u16,
) -> Self
pub fn for_screen( screen: &ScreenBuffer, cursor_visible: bool, viewport: u32, selection: Option<SelectionRange>, screen_reverse: bool, preedit: Option<PreeditSpan>, reserved_bottom_rows: u16, ) -> Self
pending_wrap can bump the cursor column past the right edge for
one print; the in-bounds check hides it then. Focus loss hides
the cursor, and so does viewport > 0 (Kitty / Alacritty’s
cursor-in-scrollback behavior): the live row has scrolled off the
visible window.
pub fn row(&self, row: u16, cells: &RowCells<'_>) -> RowFrame
Trait Implementations§
Source§impl Clone for FrameState
impl Clone for FrameState
impl Copy for FrameState
Source§impl Debug for FrameState
impl Debug for FrameState
impl Eq for FrameState
Source§impl PartialEq for FrameState
impl PartialEq for FrameState
impl StructuralPartialEq for FrameState
Auto Trait Implementations§
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnsafeUnpin for FrameState
impl UnwindSafe for FrameState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.