Commit 0caf108b authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

OSC/DCS processing no longer gets the terminator

The terminator for OSC/DCS/... is now handled by the parser, and
OSC/DCS/... processing just gets the command string.
parent f7706860
......@@ -1021,9 +1021,6 @@ void Vt102Emulation::processSessionAttributeRequest(const int tokenSize, const u
int attribute = 0;
int i;
// ignore last character (ESC or BEL)
//--tokenSize;
/* clang-format off */
// skip first two characters (ESC, ']')
for (i = 0; i < tokenSize &&
......@@ -2818,10 +2815,6 @@ void Vt102Emulation::SixelCharacterAdd(uint8_t character, int repeat)
bool Vt102Emulation::processSixel(uint cc)
{
if (cc == ESC) {
return false;
}
switch (cc) {
case '$':
SixelCharacterAdd('\r');
......@@ -2838,23 +2831,6 @@ bool Vt102Emulation::processSixel(uint cc)
uint *s = tokenBuffer;
const int p = tokenBufferPos;
if (p == 2 && s[0] == ESC) {
switch (s[1]) {
case '\\':
resetMode(MODE_Sixel);
SixelModeDisable();
resetTokenizer();
return true;
case ESC:
resetTokenizer();
receiveChars(QVector<uint>{s[1]}); // re-send the actual character
return true;
default:
SixelModeAbort();
receiveChars(QVector<uint>{s[0], s[1]}); // re-send the actual character
return true;
}
}
if (!m_SixelStarted && (sixel() || s[0] == '!' || s[0] == '#')) {
m_aspect = qMakePair(1, 1);
SixelModeEnable(30, 6);
......
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