pub struct CopyMode { /* private fields */ }Expand description
Manages copy mode state and terminal mouse capture.
Implementations§
Source§impl CopyMode
impl CopyMode
Sourcepub fn toggle<W: Write>(&mut self, writer: &mut W) -> Result<()>
pub fn toggle<W: Write>(&mut self, writer: &mut W) -> Result<()>
Toggle copy mode on/off. Manages mouse capture accordingly.
Sourcepub fn activate<W: Write>(&mut self, writer: &mut W) -> Result<()>
pub fn activate<W: Write>(&mut self, writer: &mut W) -> Result<()>
Enter copy mode: disable mouse capture.
Sourcepub fn deactivate<W: Write>(&mut self, writer: &mut W) -> Result<()>
pub fn deactivate<W: Write>(&mut self, writer: &mut W) -> Result<()>
Exit copy mode: re-enable mouse capture if it was previously enabled.
Sourcepub fn status_indicator(&self) -> Option<Span<'static>>
pub fn status_indicator(&self) -> Option<Span<'static>>
Build a status indicator span for the key hints bar.
Sourcepub fn strip_borders(&self) -> bool
pub fn strip_borders(&self) -> bool
Whether panel borders should be stripped in copy mode.
Build a copy mode banner line for display at the top of the screen.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyMode
impl RefUnwindSafe for CopyMode
impl Send for CopyMode
impl Sync for CopyMode
impl Unpin for CopyMode
impl UnsafeUnpin for CopyMode
impl UnwindSafe for CopyMode
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request