Skip to main content

beamterm_data/
terminal_size.rs

1/// Dimensions of a terminal grid in cells.
2#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3pub struct TerminalSize {
4    pub cols: u16,
5    pub rows: u16,
6}
7
8impl TerminalSize {
9    pub fn new(cols: u16, rows: u16) -> Self {
10        Self { cols, rows }
11    }
12}