diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index be37adf6..520cb36a 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -3656,7 +3656,8 @@ _handle_xterm_11_command(Termpty *ty, Eina_Unicode *p) ERR("error getting color class 'BG'"); } TERMPTY_WRITE_STR("\033]11;rgb:"); - l = snprintf(buf, sizeof(buf), "%.2X/%.2X/%.2X", r, g, b); + l = snprintf(buf, sizeof(buf), "%.2x%.2x/%.2x%.2x/%.2x%.2x", + r, r, g, g, b, b); termpty_write(ty, buf, l); TERMPTY_WRITE_STR("\007"); diff --git a/tests/tests.results b/tests/tests.results index c4ae8508..d8f480bb 100644 --- a/tests/tests.results +++ b/tests/tests.results @@ -121,4 +121,4 @@ mouse_reporting_mode_normal_ext_urxvt.sh bf68099047410f102e71d2e451875c69 mouse_reporting_mode_mouse_move_pressed_ext_urxvt.sh 59f3e59b60b3a43260de6a80135489eb mouse_reporting_mode_all_ext_urxvt.sh a11bbc8ebea42d06cc3ad823b52c09b3 shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33 -osc-11-query.sh fa4a07e289cc7b223404bb580dc413bf +osc-11-query.sh 369e4e03be35dcb360e45d13fcd7da61