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 daef4f4d authored by deuce's avatar deuce

Add some additional useful DECRQSS queries from xterm.

parent cb34aac7
......@@ -2892,7 +2892,7 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
switch (cterm->strbuf[2]) {
case 'm':
if (cterm->strbuf[3] == 0) {
strcpy(tmp, "\x1b" "1$r0");
strcpy(tmp, "\x1bP1$r0");
if (cterm->attr & 8)
strcat(tmp, ";1");
if (cterm->attr & 128)
......@@ -2955,7 +2955,35 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
strcat(tmp, ";");
strcat(tmp, cterm->bg_tc_str);
}
strcat(tmp, "m");
strcat(tmp, "m\x1b\\");
if(strlen(retbuf)+strlen(tmp) < retsize)
strcat(retbuf, tmp);
}
break;
case 'r':
if (cterm->strbuf[3] == 0) {
sprintf(tmp, "\x1bP1$r%d;%dr\x1b\\", cterm->top_margin, cterm->bottom_margin);
if(strlen(retbuf)+strlen(tmp) < retsize)
strcat(retbuf, tmp);
}
break;
case 't':
if (cterm->strbuf[3] == 0) {
sprintf(tmp, "\x1bP1$r%dt\x1b\\", cterm->height);
if(strlen(retbuf)+strlen(tmp) < retsize)
strcat(retbuf, tmp);
}
break;
case '$':
if (cterm->strbuf[3] == '|' && cterm->strbuf[4] == 0) {
sprintf(tmp, "\x1bP1$r%d$|\x1b\\", cterm->width);
if(strlen(retbuf)+strlen(tmp) < retsize)
strcat(retbuf, tmp);
}
break;
case '*':
if (cterm->strbuf[3] == '|' && cterm->strbuf[4] == 0) {
sprintf(tmp, "\x1bP1$r%d$|\x1b\\", cterm->height);
if(strlen(retbuf)+strlen(tmp) < retsize)
strcat(retbuf, tmp);
}
......
......@@ -163,6 +163,10 @@ ESC P Device Control String
Currently supported values of p1:
m Request SGR parameters
r Request top and bottom margins
t Request height in lines
$| Request width in columns
*| Request height in lines
ESC ^ Privacy Message
Begins a string consisting of the characters 0x08 - 0x0d and
......
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