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