Skip to main content

terminal_size

Function terminal_size 

Source
pub fn terminal_size() -> Option<(u16, u16)>
Expand description

Get the current terminal dimensions.

Returns Some((width, height)) if the terminal size can be determined, otherwise None.