From db9b99e8ac2ec07d3468cd4cb038cd27f99bc738 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 2 May 2020 22:58:30 +0200 Subject: osc: fix 'OSC 12 ?' to return the cursor color, not the cursor text color --- osc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'osc.c') diff --git a/osc.c b/osc.c index 800385ab..1946f052 100644 --- a/osc.c +++ b/osc.c @@ -525,9 +525,9 @@ osc_dispatch(struct terminal *term) /* Client queried for current value */ if (strlen(string) == 1 && string[0] == '?') { - uint8_t r = (term->cursor_color.text >> 16) & 0xff; - uint8_t g = (term->cursor_color.text >> 8) & 0xff; - uint8_t b = (term->cursor_color.text >> 0) & 0xff; + uint8_t r = (term->cursor_color.cursor >> 16) & 0xff; + uint8_t g = (term->cursor_color.cursor >> 8) & 0xff; + uint8_t b = (term->cursor_color.cursor >> 0) & 0xff; char reply[32]; snprintf(reply, sizeof(reply), "\033]12;rgb:%02x/%02x/%02x\033\\", r, g, b); -- cgit v1.3