sivtr-core 0.1.2

Core library for sivtr terminal output and AI coding session processing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Cursor position in the buffer, using display columns.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
pub struct Cursor {
    /// Row index (0-based line number).
    pub row: usize,
    /// Column index (0-based display column).
    pub col: usize,
}

impl Cursor {
    pub fn new(row: usize, col: usize) -> Self {
        Self { row, col }
    }
}