-/* $OpenBSD: input.c,v 1.197 2021/12/07 07:21:40 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.198 2021/12/07 07:28:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
}
s = strsep(&next, ";");
+ if (strcmp(s, "?") == 0) {
+ c = colour_palette_get(ictx->palette, idx);
+ if (c != -1)
+ input_osc_colour_reply(ictx, 4, c);
+ continue;
+ }
if ((c = input_osc_parse_colour(s)) == -1) {
s = next;
continue;