aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-04-20 05:16:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-04-26 08:46:39 +0000
commit624c383a1f45a4fbd5ebf687613c509e6c22d909 (patch)
tree8e756d919e0e0d7e937cc3552ebafad1c7c8b6d6 /osc.c
parentconfig: refactor: break out 'colors' to a color_theme struct (diff)
config: move cursor.color to colors.cursor
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/osc.c b/osc.c
index eaf6e33e..7e3e6376 100644
--- a/osc.c
+++ b/osc.c
@@ -1570,8 +1570,14 @@ osc_dispatch(struct terminal *term)
case 112:
LOG_DBG("resetting cursor color");
- term->colors.cursor_fg = term->conf->cursor.color.text;
- term->colors.cursor_bg = term->conf->cursor.color.cursor;
+ term->colors.cursor_fg = term->conf->colors.cursor.text;
+ term->colors.cursor_bg = term->conf->colors.cursor.cursor;
+
+ if (term->conf->colors.use_custom.cursor) {
+ term->colors.cursor_fg |= 1u << 31;
+ term->colors.cursor_bg |= 1u << 31;
+ }
+
term_damage_cursor(term);
break;