--- wl/weston_git/weston/clients/terminal.c 2013-11-24 12:38:30.501041634 +0200 +++ wl/weston/clients/terminal.c 2013-11-24 12:47:32.727697285 +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 */