Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1d5e198e authored by deuce's avatar deuce

Add the XTerm CSI ? Ps1 ; Ps2 S command to query the sixel canvas size

parent 1527cc78
......@@ -1543,6 +1543,15 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
}
}
break;
case 'S': // XTerm graphics query
if (seq->param_str[0] == '?' && parse_parameters(seq)) {
if (seq->param_int[0] == 2 && seq->param_int[1] == 1) {
int vmode = find_vmode(cio_api.mode);
sprintf(tmp, "\x1b[?2;0;%u;%uS", vparams[vmode].charwidth*cterm->width, vparams[vmode].charheight*cterm->height);
if(*tmp && strlen(retbuf) + strlen(tmp) < retsize)
strcat(retbuf, tmp);
}
}
case 'c':
/* SyncTERM Device Attributes */
if (seq->param_str[0] == '<' && parse_parameters(seq)) {
......
......@@ -428,6 +428,14 @@ CSI Pn S
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
CSI ? Ps1 ; Ps2 S
Query Graphics Information
If Ps1 is 2, and Ps2 is 1, replies with the graphics screen information
in the following format: CSI ? 2 ; 0 ; Px ; Py S
Where Px is the width of the screen in pixels and Py is the height.
SOURCE: XTerm
CSI Pn T
Scroll Down
Defaults: Pn = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment