feat: improve Terminal emulator performance

This commit is contained in:
2026-05-16 09:33:30 +02:00
parent 005bd33f32
commit f8e8af1d78
5 changed files with 543 additions and 207 deletions
+1
View File
@@ -148,6 +148,7 @@ static void klog_handle_mouse(const Montauk::WinEvent& ev) {
static void klog_cleanup() {
if (g_klog.term.cells) montauk::free(g_klog.term.cells);
if (g_klog.term.alt_cells) montauk::free(g_klog.term.alt_cells);
if (g_klog.term.render_cells) montauk::free(g_klog.term.render_cells);
if (g_klog.klog_buf) montauk::mfree(g_klog.klog_buf);
montauk::memset(&g_klog, 0, sizeof(g_klog));
}