Skip to content
Snippets Groups Projects
Commit 6b18f02f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix bracketpaste and erase line

The bracketpaste "bit" was set to 0x16, not 0x10 or 16 as intended.
Erase line would erase the wrong line if the scrolling region didn't
start on line 1.
parent 0ec3a97d
No related branches found
No related tags found
No related merge requests found
......@@ -3505,7 +3505,7 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
break;
case 2:
CURR_XY(&col, &row);
cterm_gotoxy(cterm, CURR_MINX, row);
GOTOXY(CURR_MINX, row);
CLREOL();
GOTOXY(col, row);
break;
......
......@@ -122,7 +122,7 @@ struct cterminal {
#define CTERM_EXTATTR_ORIGINMODE 0x0002
#define CTERM_EXTATTR_SXSCROLL 0x0004
#define CTERM_EXTATTR_DECLRMM 0x0008
#define CTERM_EXTATTR_BRACKETPASTE 0x0016
#define CTERM_EXTATTR_BRACKETPASTE 0x0010
int save_xpos; // Saved position (for later restore)
int save_ypos;
int sequence; // An escape sequence is being parsed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment