pub struct Painter { /* private fields */ }
Expand description
Implementation of the output to the terminal
Implementations§
source§impl Painter
impl Painter
sourcepub fn screen_height(&self) -> u16
pub fn screen_height(&self) -> u16
Height of the current terminal window
sourcepub fn screen_width(&self) -> u16
pub fn screen_width(&self) -> u16
Width of the current terminal window
sourcepub fn remaining_lines(&self) -> u16
pub fn remaining_lines(&self) -> u16
Returns the available lines from the prompt down
sourcepub fn state_before_suspension(&self) -> PainterSuspendedState
pub fn state_before_suspension(&self) -> PainterSuspendedState
Returns the state necessary before suspending the painter (to run a host command event).
This state will be used to re-initialize the painter to re-use last prompt if possible.
Auto Trait Implementations§
impl Freeze for Painter
impl RefUnwindSafe for Painter
impl Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl UnwindSafe for Painter
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