Resolve merge conflict

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
Titanium Brain
2026-05-09 21:06:45 +02:00
committed by AnErrupTion
parent f6c44d5e57
commit 692ca9f7b5
2 changed files with 16 additions and 41 deletions

View File

@@ -381,6 +381,12 @@ pub fn setCell(x: usize, y: usize, cell: Cell) void {
);
}
pub fn setCellBoundsChecked(self: *TerminalBuffer, x: isize, y: isize, cell: Cell) void {
if (0 <= x and x < self.width and 0 <= y and y < self.height) {
cell.put(@intCast(x), @intCast(y));
}
}
pub fn reclaim(self: TerminalBuffer) !void {
if (self.termios) |termios| {
// Take back control of the TTY