[Wayland-bugs] [Bug 71935] weston-terminal: artifacts (lingering character glyphs) when scrolling in vim (ncurses)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Nov 24 03:21:37 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=71935
--- Comment #5 from emiettin at edu.lahti.fi ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20131124/69d4d2c1/attachment.html>
More information about the Wayland-bugs
mailing list