Commit 77e9f522 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

reportDecodingError() improvements

Mostly fallout from not paying attention to it when resolving the
conflict with 5888a377.

Reporting parse errors (and many other things) can be enabled with:

QT_LOGGING_RULES="org.kde.konsole.debug=true"
parent 0caf108b
......@@ -13,7 +13,6 @@
#include <unistd.h>
// Qt
#include <QDebug>
#include <QEvent>
#include <QKeyEvent>
#include <QTimer>
......@@ -2529,14 +2528,8 @@ static QString hexdump2(uint *s, int len)
void Vt102Emulation::reportDecodingError(int token)
{
resetTokenizer();
if (m_SixelStarted) {
SixelModeAbort();
}
QString outputError = QStringLiteral("Undecodable sequence: ");
printf("token: %x\n", token);
switch (token & 0xff) {
case 2:
case 3:
......@@ -2572,7 +2565,13 @@ void Vt102Emulation::reportDecodingError(int token)
outputError.append((token >> 16) & 0xff);
}
qDebug() << outputError;
qCDebug(KonsoleDebug).noquote() << outputError;
resetTokenizer();
if (m_SixelStarted) {
SixelModeAbort();
}
}
void Vt102Emulation::sixelQuery(int q)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment