cell: set default cell as a space of 1 width

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
Tim Culverhouse 2024-01-19 11:02:32 -06:00
parent 02bdcd7625
commit 08d2aae5fe

View file

@ -1,11 +1,11 @@
pub const Cell = struct {
char: Character,
char: Character = .{},
style: Style = .{},
};
pub const Character = struct {
grapheme: []const u8,
width: usize,
grapheme: []const u8 = " ",
width: usize = 1,
};
pub const Style = struct {