mirror of
https://github.com/KDE/konsole.git
synced 2026-06-09 14:35:06 -04:00
Fix compatibility with xterm's OSC 104 without arguments
It is called by `reset`.
This commit is contained in:
committed by
Kurt Hindenburg
parent
35647c4c13
commit
df7a462f85
@@ -1038,7 +1038,18 @@ void Vt102Emulation::processSessionAttributeRequest(const int tokenSize, const u
|
||||
/* clang-format on */
|
||||
|
||||
if (tokenBuffer[i] != ';') {
|
||||
reportDecodingError(token_osc(terminator));
|
||||
// No arguments
|
||||
switch(attribute) {
|
||||
case 104: // 104 without any argument means clear entire color table
|
||||
for (int i=0; i<256; i++) {
|
||||
colorTable[i] = QColor();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
reportDecodingError(token_osc(terminator));
|
||||
break;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
// skip initial ';'
|
||||
|
||||
Reference in New Issue
Block a user