From 0caf108bf4d71b1a2c0fec4c3211a66e6ab89e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Javier=20Merino=20Mor=C3=A1n?= Date: Mon, 30 May 2022 16:21:20 +0200 Subject: [PATCH] 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. --- src/Vt102Emulation.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/Vt102Emulation.cpp b/src/Vt102Emulation.cpp index 91f6e20d..66dfab48 100644 --- a/src/Vt102Emulation.cpp +++ b/src/Vt102Emulation.cpp @@ -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{s[1]}); // re-send the actual character - return true; - default: - SixelModeAbort(); - receiveChars(QVector{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);