    }

    pub fn set_char(&mut self, x: usize, y: usize, glyph: char) {
        self.cells[x + y * self.width].glyph = glyph;
    }

    pub fn set_fg(&mut self, x: usize, y: usize, color: Color) {
        self.cells[x + y * self.width].foreground = color;
    }

    pub fn set_bg(&mut self, x: usize, y: usize, color: Color) {
        self.cells[x + y * self.width].background = color;
    }
