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

Fix CVT (CSI Pn Y).

parent 1a707b38
...@@ -3233,9 +3233,9 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int * ...@@ -3233,9 +3233,9 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
} }
if (i == cterm->tab_count) if (i == cterm->tab_count)
break; break;
for (k = 1; k < seq->param_int[0]; k++) { for (k = 0; k < seq->param_int[0] && i + k < cterm->tab_count; k++) {
if (cterm->tabs[k] <= TERM_MAXX) if (cterm->tabs[i + k] <= TERM_MAXX)
col = cterm->tabs[k]; col = cterm->tabs[i + k];
else else
break; break;
} }
......
...@@ -523,15 +523,15 @@ CSI Pn S (SU) ...@@ -523,15 +523,15 @@ CSI Pn S (SU)
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
CSI ? Ps1 ; Ps2 S CSI ? Ps1 ; Ps2 S (XTSRGA)
Query Graphics Information XTerm Set or Request Graphics Attribute
If Ps1 is 2, and Ps2 is 1, replies with the graphics screen 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 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. Where Px is the width of the screen in pixels and Py is the height.
SOURCE: XTerm SOURCE: XTerm
CSI Pn T CSI Pn T (SD)
Scroll Down Scroll Down
Defaults: Pn = 1 Defaults: Pn = 1
Scrolls all text on the screen down Pn lines. New lines emptied at the Scrolls all text on the screen down Pn lines. New lines emptied at the
...@@ -547,7 +547,7 @@ CSI U ...@@ -547,7 +547,7 @@ CSI U
SOURCE: BANSI.TXT SOURCE: BANSI.TXT
CSI Pn X CSI Pn X (ECH)
Erase Character Erase Character
Defaults: Pn = 1 Defaults: Pn = 1
Erase p1 characters starting at the current character. Will not erase Erase p1 characters starting at the current character. Will not erase
...@@ -556,7 +556,7 @@ CSI Pn X ...@@ -556,7 +556,7 @@ CSI Pn X
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
CSI Pn Y CSI Pn Y (CVT)
Cursor Line Tabulation Cursor Line Tabulation
Defaults: Pn = 1 Defaults: Pn = 1
Move the cursor to the Pn-th next tab stop. Move the cursor to the Pn-th next tab stop.
......
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