Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Update

mintsuki 6f89bb00 25dc8a17

Changed files
+5 -3
backends
+5 -3
backends/framebuffer.c
···
ctx->grid_size = _ctx->rows * _ctx->cols * sizeof(struct fbterm_char);
ctx->grid = _malloc(ctx->grid_size);
+
for (size_t i = 0; i < _ctx->rows * _ctx->cols; i++) {
+
ctx->grid[i].c = ' ';
+
ctx->grid[i].fg = ctx->text_bg;
+
ctx->grid[i].bg = ctx->text_bg;
+
}
ctx->queue_size = _ctx->rows * _ctx->cols * sizeof(struct fbterm_queue_item);
ctx->queue = _malloc(ctx->queue_size);
···
_ctx->deinit = fbterm_deinit;
term_context_reinit(_ctx);
-
-
fbterm_clear(_ctx, true);
-
fbterm_full_refresh(_ctx);
return _ctx;
}