https://bugs.freedesktop.org/show_bug.cgi?id=71935
--- Comment #4 from [email protected] --- Comment on attachment 89708 --> https://bugs.freedesktop.org/attachment.cgi?id=89708 patch to fix the 'clear entire screen' escape sequence handler --- weston_a/clients/terminal.c 2013-11-24 13:18:57.020992332 +0200 +++ weston_b/clients/terminal.c 2013-11-24 13:19:28.517658360 +0200 @@ -1415,8 +1415,12 @@ } } else if (args[0] == 2) { /* Clear screen by scrolling contents out */ - terminal_scroll_buffer(terminal, - terminal->end - terminal->start); + for (i = 0; i < terminal->height; i++) { + memset(terminal_get_row(terminal, i), + 0, terminal->data_pitch); + attr_init(terminal_get_attr_row(terminal, i), + terminal->curr_attr, terminal->width); + } } break; case 'K': /* EL */ -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Wayland-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-bugs
