|
|
|
|
@ -799,6 +799,10 @@ void Vt102Emulation::processSessionAttributeRequest(int tokenSize) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (attribute == 1337) { |
|
|
|
|
if (value.startsWith(QLatin1String("ReportCellSize"))) { |
|
|
|
|
iTermReportCellSize(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!value.startsWith(QLatin1String("File="))) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
@ -1581,6 +1585,17 @@ void Vt102Emulation::reportPixelSize() |
|
|
|
|
sendString(tmp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Vt102Emulation::iTermReportCellSize() |
|
|
|
|
{ |
|
|
|
|
char tmp[50]; |
|
|
|
|
snprintf(tmp, |
|
|
|
|
sizeof(tmp), |
|
|
|
|
"\033]1337;ReportCellSize=%d.0;%d.0;1.0\007", |
|
|
|
|
_currentScreen->currentTerminalDisplay()->terminalFont()->fontHeight(), |
|
|
|
|
_currentScreen->currentTerminalDisplay()->terminalFont()->fontWidth()); |
|
|
|
|
sendString(tmp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Vt102Emulation::reportCellSize() |
|
|
|
|
{ |
|
|
|
|
char tmp[30]; |
|
|
|
|
|