add(container/rectangle): add content creation

This commit is contained in:
2025-02-07 17:43:16 +01:00
parent 11531e9d4a
commit d326deac97
4 changed files with 14 additions and 8 deletions

View File

@@ -66,10 +66,6 @@ pub fn value(this: Style, writer: anytype, cp: u21) !void {
try std.fmt.format(writer, "m", .{});
// content
try std.fmt.format(writer, "{s}", .{buffer});
// TODO: is it necessary to reset the graphics mode afterwards to ensure
// that everything rendered behind is still as expected (without any
// side-effects)?
// try writer.print("\x1b[0m", .{});
}
// TODO: implement helper functions for terminal capabilities: