pub struct Input { /* private fields */ }Expand description
The input configuration section repr.
None values will not override current ones.
See terminal::set().
Implementations§
Source§impl Input
impl Input
Sourcepub fn empty() -> Input
pub fn empty() -> Input
Construct an input configuration section override segment
with all elements equal to None.
Sourcepub fn precise_mouse(self, precise_mouse: bool) -> Self
pub fn precise_mouse(self, precise_mouse: bool) -> Self
Whether to generate a mouse-move event when a mouse moves from one pixel to another as opposed to from one cell to another.
Default: false.
Sourcepub fn mouse_cursor(self, mouse_cursor: bool) -> Self
pub fn mouse_cursor(self, mouse_cursor: bool) -> Self
Whether to show the cursor.
Default: true.
Sourcepub fn cursor_symbol(self, cursor_symbol: char) -> Self
pub fn cursor_symbol(self, cursor_symbol: char) -> Self
The cursor symbol to blink in the read string function.
Default: '_' a.k.a. 0x5F.
Sourcepub fn cursor_blink_rate(self, cursor_blink_rate: i32) -> Self
pub fn cursor_blink_rate(self, cursor_blink_rate: i32) -> Self
Amount of time in milliseconds to blink the cursor symbol for.
Default: 500.
Trait Implementations§
Source§impl ConfigPart for Input
impl ConfigPart for Input
fn to_config_str(&self) -> String
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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