terminal/new: todos

This commit is contained in:
Mitchell Hashimoto
2024-02-20 10:12:09 -08:00
parent c44bc54daf
commit f6b202f24a
2 changed files with 8 additions and 0 deletions

View File

@ -303,6 +303,8 @@ fn printCell(self: *Terminal, unmapped_c: u21) void {
// If the prior value had graphemes, clear those
//if (cell.attrs.grapheme) row.clearGraphemes(self.screen.cursor.x);
// TODO: prev cell overwriting style
// Write
self.screen.cursor.page_cell.* = .{
.style_id = self.screen.cursor.style_id,

View File

@ -53,6 +53,12 @@ pub const Page = struct {
/// first column, all cells in that row are laid out in column order.
cells: Offset(Cell),
/// The multi-codepoint grapheme data for this page. This is where
/// any cell that has more than one codepoint will be stored. This is
/// relatively rare (typically only emoji) so this defaults to a very small
/// size and we force page realloc when it grows.
__todo_graphemes: void = {},
/// The available set of styles in use on this page.
styles: style.Set,