Commit 60b48fdc authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Implement XTVERSION

parent bcd83d81
......@@ -1294,6 +1294,7 @@ void Vt102Emulation::processToken(int token, int p, int q)
case token_csi_pq('c' ) : reportTertiaryAttributes( ); break; //VT420
case token_csi_pg('c' ) : reportSecondaryAttributes( ); break; //VT100
case token_csi_pg('q' ) : reportVersion( ); break;
default:
reportDecodingError();
......@@ -1600,6 +1601,11 @@ void Vt102Emulation::reportSecondaryAttributes()
// konsoles backward compatibility.
}
void Vt102Emulation::reportVersion()
{
sendString("\033P>|Konsole " KONSOLE_VERSION "\033\\");
}
/* DECREPTPARM – Report Terminal Parameters
ESC [ <sol>; <par>; <nbits>; <xspeed>; <rspeed>; <clkmul>; <flags> x
......
......@@ -156,6 +156,7 @@ private:
void reportTerminalType();
void reportTertiaryAttributes();
void reportSecondaryAttributes();
void reportVersion();
void reportStatus();
void reportAnswerBack();
void reportCursorPosition();
......
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