add(renderer/direct): write newline function to align view if necessary
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m8s

This commit is contained in:
2026-01-27 15:32:35 +01:00
parent eb36c7c410
commit 6781c43fcc

View File

@@ -163,6 +163,11 @@ pub const Direct = struct {
_ = try terminal.write("^D\n"); _ = try terminal.write("^D\n");
} }
pub fn writeNewline(this: *@This()) !void {
_ = this;
_ = try terminal.write("\n");
}
/// Render provided cells at size (anchor and dimension) into the *screen*. /// Render provided cells at size (anchor and dimension) into the *screen*.
pub fn render(this: *@This(), comptime Container: type, container: *Container, comptime Model: type, model: *const Model) !void { pub fn render(this: *@This(), comptime Container: type, container: *Container, comptime Model: type, model: *const Model) !void {
const size: Point = container.size; const size: Point = container.size;