- Crash when g.u > 0xffff (?!), possible fix the following:
diff --git a/qlightterminal.cpp b/qlightterminal.cpp
index a6a594f..1e1860d 100644
--- a/qlightterminal.cpp
+++ b/qlightterminal.cpp
@@ -259,7 +259,12 @@ void QLightTerminal::paintEvent(QPaintEvent *event) {
painter.setFont(font);
}
- line += QChar(g.u);
+ if (0xffff < g.u) {
+ for (auto c: QStringView(QChar::fromUcs4(g.u)))
+ line += QChar(c);
+ } else {
+ line += QChar(g.u);
+ }
}
painter.drawText(QPointF(offset, yPos), line);
yPos -= win.lineheight;
- "textual run -c textual colors" - mouse doesn't work. WTF? textual
erresc: unknown csi ESC[>1u
erresc: unknown csi ESC[=1;u
erresc: unknown csi ESC[?2026$p
After Ctrl+C:
erresc: unknown csi ESC[<u