pub fn terminal_size() -> Option<(Width, Height)> {
    let size = terminal_size_using_fd();
    match size {
        Some((Width(0), Height(0))) => {
            terminal_size_using_env()
        },
        _ => size,
    }
}
/// Returns the size of the terminal defaulting to STDOUT, if available.
///
/// If STDOUT is not a tty, returns `None`
/// If STDOUT is a tty, but both width and height is 0,
/// fallback to use system env: COLUMNS and LINES.
Returns the size of the terminal defaulting to STDOUT, if available.
If STDOUT is not a tty, returns `None`
If STDOUT is a tty, but both width and height is 0,
fallback to use system env: COLUMNS and LINES.
Returns the size of the terminal defaulting to STDOUT if available . If STDOUT is not a tty returns ` None ` If STDOUT is a tty but both width and height is 0 fallback to use system env : COLUMNS and LINES .
pub fn terminal_size() -> Option<(Width, Height)> {
    let size = terminal_size_using_fd();
    match size {
        Some((Width(0), Height(0))) => {
            terminal_size_using_env()
        },
        _ => size,
    }
}
pub fn terminal_size ( ) -> Option < ( Width , Height ) > { let size = terminal_size_using_fd ( ) ; match size { Some ( ( Width ( 0 ) , Height ( 0 ) ) ) => { terminal_size_using_env ( ) } , _ => size , } }
Returns the size of the terminal defaulting to STDOUT, if available.
Returns the size of the terminal defaulting to STDOUT if available .