aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-08-27 09:29:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-08-27 09:30:05 +0000
commitdccbdb97cd97384f5959c8ba986bb0f87428aef1 (patch)
tree480ffba06ea9378b86792aa63c93b829bd2eac7c /terminal.c
parentcsi: wip: parse the multi-cursor escape (CS > SPACE q) (diff)
multi-cursor: wip: start tracking which cells has secondary cursors
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 2e23f749..62bcd7d9 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1424,6 +1424,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
term->notification_icons[i].tmp_file_fd = -1;
}
+ pixman_region32_init(&term->multi_cursor.active);
+
add_utmp_record(conf, reaper, ptmx);
if (!pty_path) {
@@ -1943,6 +1945,8 @@ term_destroy(struct terminal *term)
free(term->mouse_user_cursor);
free(term->color_stack.stack);
+ pixman_region32_fini(&term->multi_cursor.active);
+
int ret = EXIT_SUCCESS;
if (term->slave > 0) {