diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-04-20 05:16:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-04-26 08:46:39 +0000 |
| commit | 624c383a1f45a4fbd5ebf687613c509e6c22d909 (patch) | |
| tree | 8e756d919e0e0d7e937cc3552ebafad1c7c8b6d6 /osc.c | |
| parent | config: 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.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; |
