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

Clear cterm->sequence and cterm->escbuf when ignoring ESC

parent 1eb4ec04
No related branches found
No related tags found
No related merge requests found
Pipeline #7957 passed
......@@ -5531,8 +5531,11 @@ prestel_handle_escaped(struct cterminal *cterm, uint8_t ctrl)
struct vmem_cell tmpvc[1];
int sx, sy, x, y;
if (ctrl < 0x40 || ctrl > 0x5f)
if (ctrl < 0x40 || ctrl > 0x5f) {
cterm->escbuf[0]=0;
cterm->sequence=0;
return;
}
prestel_apply_ctrl_before(cterm, ctrl);
TEXTATTR(cterm->attr);
setcolour(cterm->fg_color, cterm->bg_color);
......
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