pub struct Cursor {
pub row: usize,
pub col: usize,
pub pending_wrap: bool,
pub pen: Pen,
pub visible: bool,
pub shape: CursorShape,
pub blink: bool,
}Expand description
The input position, its pending-wrap state, and the current pen.
Fields§
§row: usize§col: usize§pending_wrap: boolDeferred last-column wrap (xterm’s “wrapnext”). Set when a print fills the
last column: the cursor stays put and the actual line wrap happens on the
next print. Eager wrapping here is the classic off-by-one that shifts
lines (see docs/architecture.md “Hidden VT state”).
pen: Pen§visible: boolWhether the cursor is shown (DEC ?25). The engine only reports it.
shape: CursorShapeThe caret shape (DECSCUSR, #89) — reported on the frame, drawn by the renderer.
blink: boolWhether the caret blinks (att610 ?12, #81). The engine reports the mode; the actual animation is the renderer’s.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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