aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-01 15:24:50 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-03 07:47:30 +0000
commit5d4a002413cdf09aa471e29b0a7ae29f7cf7b89c (patch)
treeeed133f2f52589d95b8b45f69d72693f8335d46f /terminal.h
parentcsi: implement SGR 21, double underlines (diff)
osc: merge OSC 10/11/12/17/19 handling
10/11/17/19 were already merged, so this patch just stops special casing 12 (cursor color). In preparation for XTPUSHCOLORS/XTPOPCOLORS, the cursor colors are moved from their own struct, into the 'colors' struct. Also fix a bug where OSC 17/19 queries returned OSC-11 data.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/terminal.h b/terminal.h
index a148e528..9fce2396 100644
--- a/terminal.h
+++ b/terminal.h
@@ -568,6 +568,8 @@ struct terminal {
uint32_t bg;
uint32_t table[256];
uint16_t alpha;
+ uint32_t cursor_fg; /* Text color */
+ uint32_t cursor_bg; /* cursor color */
uint32_t selection_fg;
uint32_t selection_bg;
bool use_custom_selection;
@@ -580,10 +582,6 @@ struct terminal {
int fd;
enum { CURSOR_BLINK_ON, CURSOR_BLINK_OFF } state;
} cursor_blink;
- struct {
- uint32_t text;
- uint32_t cursor;
- } cursor_color;
struct {
enum selection_kind kind;