pub struct SessionOptions {
pub raw_mode: bool,
pub alternate_screen: bool,
pub bracketed_paste: bool,
pub focus_change: bool,
pub keyboard_enhancement: Option<KeyboardEnhancementFlags>,
pub mouse_capture: bool,
pub hide_cursor: bool,
}Expand description
Terminal modes acquired by a session.
The default acquires no modes. Prompt and TUI entry points choose their own explicit profiles rather than placing application policy in this crate.
Fields§
§raw_mode: boolEnables raw input mode.
alternate_screen: boolUses the alternate screen buffer.
bracketed_paste: boolReports a paste as one paste event.
focus_change: boolReports terminal focus changes.
keyboard_enhancement: Option<KeyboardEnhancementFlags>Requests the selected enhanced-keyboard information when supported.
mouse_capture: boolCaptures mouse input instead of leaving terminal text selection active.
hide_cursor: boolHides the cursor until a frame or restoration shows it.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionOptions
impl Debug for SessionOptions
Source§impl Default for SessionOptions
impl Default for SessionOptions
Source§fn default() -> SessionOptions
fn default() -> SessionOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionOptions
impl PartialEq for SessionOptions
Source§fn eq(&self, other: &SessionOptions) -> bool
fn eq(&self, other: &SessionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SessionOptions
impl Eq for SessionOptions
impl StructuralPartialEq for SessionOptions
Auto Trait Implementations§
impl Freeze for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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