tab-command 0.5.7

the cli command module for the tab terminal multiplexer
Documentation
1
2
3
4
5
6
7
8
9
10
use crossterm::terminal;
use tab_api::env::is_raw_mode;

pub fn terminal_size() -> anyhow::Result<(u16, u16)> {
    if is_raw_mode() {
        terminal::size().map_err(|err| err.into())
    } else {
        Ok((80, 24))
    }
}