Skip to content

Commit

Permalink
CA-14536: fixed CSI 'M' console command
Browse files Browse the repository at this point in the history
CSI 'M' deletes lines, but in our vncterm implementation didn't clear properly
the new scrolled lines.
  • Loading branch information
Stefano Stabellini committed Feb 21, 2008
1 parent 3854c24 commit 5000027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console.c
Expand Up @@ -1824,7 +1824,8 @@ static void console_putchar(TextConsole *s, int ch)
if (s->esc_params[0] == 0)
s->esc_params[0] = 1;
scroll_text_cells(s, s->y + s->esc_params[0], s->y, s->sr_bottom - s->y - s->esc_params[0] + 1);
update_rect(s, 0, s->y, s->width, s->sr_bottom - s->y + 1);
update_rect(s, 0, s->y, s->width, s->sr_bottom - s->y - s->esc_params[0] + 1);
clear(s, 0, s->sr_bottom - s->esc_params[0] + 1, s->width, s->esc_params[0]);
break;
case 'P': /* DCH */
console_dch(s);
Expand Down

0 comments on commit 5000027

Please sign in to comment.