[termdesc] send 256 palette queries like a boss #2435

This commit is contained in:
nick black 2021-12-09 19:34:41 -05:00 committed by nick black
parent 0740f0286f
commit e9e2f601a9

View File

@ -286,6 +286,144 @@ init_terminfo_esc(tinfo* ti, const char* name, escape_e idx,
return 0;
}
#define PALETTEQUERY \
"\x1b\x5d\x34\x3b\x30\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x31\x3b\x3f\x1b\x5c\x1b\x5d"\
"\x34\x3b\x32\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x33\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b"\
"\x34\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x35\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x36\x3b"\
"\x3f\x1b\x5c\x1b\x5d\x34\x3b\x37\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x38\x3b\x3f\x1b"\
"\x5c\x1b\x5d\x34\x3b\x39\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x31\x30\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x31\x31\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x31\x32\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x31\x33\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x31\x34\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x31\x35\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x31\x36\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x31\x37\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x31\x38\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x31\x39\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32\x30\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x32\x31\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32\x32\x3b\x3f\x1b\x5c"\
"\x1b\x5d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x34\x37\x3b\x3f\x1b\x5c\x1b\x5d"\
"\x34\x3b\x32\x34\x38\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32\x34\x39\x3b\x3f\x1b\x5c"\
"\x1b\x5d\x34\x3b\x32\x35\x30\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32\x35\x31\x3b\x3f"\
"\x1b\x5c\x1b\x5d\x34\x3b\x32\x35\x32\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32\x35\x33"\
"\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32\x35\x34\x3b\x3f\x1b\x5c\x1b\x5d\x34\x3b\x32"\
"\x35\x35\x3b\x3f\x1b\x5c"
// Tertiary Device Attributes, necessary to identify VTE.
// https://vt100.net/docs/vt510-rm/DA3.html
// Replies with DCS ! | ... ST
@ -387,7 +525,8 @@ init_terminfo_esc(tinfo* ti, const char* name, escape_e idx,
// request the cell geometry of the textual area
#define GEOMCELL "\x1b[18t"
#define DIRECTIVES DEFFGQ \
#define DIRECTIVES PALETTEQUERY \
DEFFGQ \
DEFBGQ \
KKBDQUERY \
SUMQUERY \