pub struct Painter { /* private fields */ }
Expand description
Implementation of the output to the terminal
Implementations
sourceimpl 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 print_external_message(
&mut self,
messages: Vec<String>,
line_buffer: &LineBuffer,
prompt: &dyn Prompt
) -> Result<()>
pub fn print_external_message(
&mut self,
messages: Vec<String>,
line_buffer: &LineBuffer,
prompt: &dyn Prompt
) -> Result<()>
Prints an external message
Auto Trait Implementations
impl RefUnwindSafe for Painter
impl Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl UnwindSafe for Painter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more