[Konsole-devel] [konsole] [Bug 318453] Blinking cursor of "fullwidth" character are "halfwidth".

Kurt V. Hindenburg kurt.hindenburg at gmail.com
Sun Feb 16 01:28:38 UTC 2014


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

--- Comment #2 from Kurt V. Hindenburg <kurt.hindenburg at gmail.com> ---
This doesn't strike me as a good way of doing this

diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index 6ed9358..147db34 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -1597,7 +1597,10 @@ void TerminalDisplay::blinkCursorEvent()

 void TerminalDisplay::updateCursor()
 {
-    QRect cursorRect = imageToWidget(QRect(cursorPosition(), QSize(1, 1)));
+    int cursorLocation = cursorPosition().x() + (_columns *
cursorPosition().y());
+    quint16 c = _image[cursorLocation].character;
+    QRect cursorRect = imageToWidget(QRect(cursorPosition(),
+               QSize(konsole_wcwidth(c), 1)));
     update(cursorRect);
 }

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


More information about the konsole-devel mailing list