pub struct QuirkSet { /* private fields */ }Expand description
Set of terminal quirks to simulate.
Implementations§
Source§impl QuirkSet
impl QuirkSet
Sourcepub const fn tmux_nested() -> Self
pub const fn tmux_nested() -> Self
Simulate nested tmux cursor save/restore quirks in alt-screen.
Sourcepub const fn gnu_screen() -> Self
pub const fn gnu_screen() -> Self
Simulate GNU screen line-wrap behavior.
Sourcepub const fn windows_console() -> Self
pub const fn windows_console() -> Self
Simulate Windows console limitations (no alt-screen).
Sourcepub const fn with_tmux_nested_cursor(self, enabled: bool) -> Self
pub const fn with_tmux_nested_cursor(self, enabled: bool) -> Self
Enable or disable the tmux nested cursor quirk.
Sourcepub const fn with_screen_immediate_wrap(self, enabled: bool) -> Self
pub const fn with_screen_immediate_wrap(self, enabled: bool) -> Self
Enable or disable the immediate wrap quirk.
Sourcepub const fn with_windows_no_alt_screen(self, enabled: bool) -> Self
pub const fn with_windows_no_alt_screen(self, enabled: bool) -> Self
Enable or disable the Windows no-alt-screen quirk.
Sourcepub const fn has(self, quirk: TerminalQuirk) -> bool
pub const fn has(self, quirk: TerminalQuirk) -> bool
Check if a specific quirk is enabled.
Trait Implementations§
impl Copy for QuirkSet
impl Eq for QuirkSet
impl StructuralPartialEq for QuirkSet
Auto Trait Implementations§
impl Freeze for QuirkSet
impl RefUnwindSafe for QuirkSet
impl Send for QuirkSet
impl Sync for QuirkSet
impl Unpin for QuirkSet
impl UnwindSafe for QuirkSet
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.