terminal-util: extend timeout on background color request

I managed to hit the timeout a couple of times inside of slow qemu.
Let's increase it a bit to 1/3s
This commit is contained in:
Lennart Poettering
2024-07-17 17:57:12 +02:00
parent abe8e99ee6
commit ad2fa21f83

View File

@@ -1829,7 +1829,7 @@ int get_default_background_color(double *ret_red, double *ret_green, double *ret
if (r < 0)
goto finish;
usec_t end = usec_add(now(CLOCK_MONOTONIC), 100 * USEC_PER_MSEC);
usec_t end = usec_add(now(CLOCK_MONOTONIC), 333 * USEC_PER_MSEC);
char buf[STRLEN("\x1B]11;rgb:0/0/0\x07")]; /* shortest possible reply */
size_t buf_full = 0;
BackgroundColorContext context = {};