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
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m8s
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user