Handle termbox2 errors

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion committed 2026-05-17 13:26:46 +02:00
1 parent 05c1d4bece
commit 4c066ce564
17 files changed
+114 -90

No files matched your search

+2 -2
View File
@@ -14,8 +14,8 @@ pub fn init(ch: u32, fg: u32, bg: u32) Cell {
};
}
pub fn put(self: Cell, x: usize, y: usize) void {
pub fn put(self: Cell, x: usize, y: usize) !void {
if (self.ch == 0) return;
TerminalBuffer.setCell(x, y, self);
try TerminalBuffer.setCell(x, y, self);
}