Split UI code into ly-ui library

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion committed 2026-03-17 21:44:33 +01:00
1 parent 93696a6b30
commit 64539f4342
34 files changed
+159 -97

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
const TerminalBuffer = @import("TerminalBuffer.zig");
const Cell = @This();
ch: u32,
fg: u32,
bg: u32,
pub fn init(ch: u32, fg: u32, bg: u32) Cell {
return .{
.ch = ch,
.fg = fg,
.bg = bg,
};
}
pub fn put(self: Cell, x: usize, y: usize) void {
if (self.ch == 0) return;
TerminalBuffer.setCell(x, y, self);
}