freya_terminal/
buffer.rs

1use vt100::Cell;
2
3/// Terminal buffer containing the current state of the terminal.
4#[derive(Clone, PartialEq, Default)]
5pub struct TerminalBuffer {
6    /// Terminal grid rows
7    pub rows: Vec<Vec<Cell>>,
8    /// Cursor row position
9    pub cursor_row: usize,
10    /// Cursor column position
11    pub cursor_col: usize,
12    /// Number of columns in the terminal
13    pub cols: usize,
14    /// Number of rows in the terminal
15    pub rows_count: usize,
16}