pub struct TerminalLayout { /* private fields */ }Expand description
Terminal layout manager with scroll regions
Implementations§
Source§impl TerminalLayout
impl TerminalLayout
Sourcepub fn state(&self) -> Arc<LayoutState>
pub fn state(&self) -> Arc<LayoutState>
Get shared state for external access
Sourcepub fn update_status(&self, content: &str) -> Result<()>
pub fn update_status(&self, content: &str) -> Result<()>
Update the status line (progress indicator area)
Sourcepub fn update_mode(&self, plan_mode: bool) -> Result<()>
pub fn update_mode(&self, plan_mode: bool) -> Result<()>
Update the mode indicator
Sourcepub fn position_for_input(&self) -> Result<()>
pub fn position_for_input(&self) -> Result<()>
Position cursor at the input line for user input
Sourcepub fn position_for_output(&self) -> Result<()>
pub fn position_for_output(&self) -> Result<()>
Return cursor to scroll region (for output)
Sourcepub fn handle_resize(&self) -> Result<()>
pub fn handle_resize(&self) -> Result<()>
Handle terminal resize
Trait Implementations§
Source§impl Default for TerminalLayout
impl Default for TerminalLayout
Auto Trait Implementations§
impl Freeze for TerminalLayout
impl RefUnwindSafe for TerminalLayout
impl Send for TerminalLayout
impl Sync for TerminalLayout
impl Unpin for TerminalLayout
impl UnwindSafe for TerminalLayout
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> 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> 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 moreCreates a shared type from an unshared type.