beamterm-data 0.18.0

Core data structures and binary serialization for the beamterm WebGL terminal renderer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Dimensions of a terminal grid in cells.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct TerminalSize {
    pub cols: u16,
    pub rows: u16,
}

impl TerminalSize {
    pub fn new(cols: u16, rows: u16) -> Self {
        Self { cols, rows }
    }
}