[Konsole-devel] [konsole] [Bug 330214] Wrong rendering at the end of line when drawing colored whitespaces

Igor Kostromin elwood.su at gmail.com
Sat Feb 8 20:59:26 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=330214

--- Comment #2 from Igor Kostromin <elwood.su at gmail.com> ---
After several days of investigation, I have found the source of a problem. If
width > 80, ncurses for this line generates sequence of control codes with
text, this sequence rerenders it 100%. But when width < 80, ncurses
(optimized?) generates sequence of control codes without any text, but with
"DEL" control code. Konsole deletes one character, and at end of line it filled
with empty flags. XTerm and another terms handle it otherwise: they fill end of
line using space with attributes which are set now (see ClearCells func at
screen.c file in xterm sources - view https://gist.github.com/elw00d/8890166).
If comment ClearCells call in ScrnDeleteChar func implementation, bug will be
"reproduced" in xterm too.

Proposed patch:
https://gist.github.com/anonymous/8890021

I didn't code on C/C++ for several years, and I don't sure that creating
anonymous Character object is good in this place, so fix my code, please, if it
is buggy from memory consistency point of view.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list