fix: port Konsole to Redox Qt surface

This commit is contained in:
2026-05-07 09:11:47 +01:00
parent b54b2dbf76
commit 702cbfd429
19 changed files with 534 additions and 30 deletions
@@ -1838,16 +1838,17 @@ void Screen::setSelectionEnd(const int x, const int y, const bool trimTrailingWh
// Do not let this code go to a release.
if (_screenLines.size() < line) {
QFile konsoleInfo(QStringLiteral("~/konsole_info_crash_array_out_of_bounds.txt"));
konsoleInfo.open(QIODevice::WriteOnly);
QTextStream messages(&konsoleInfo);
if (konsoleInfo.open(QIODevice::WriteOnly)) {
QTextStream messages(&konsoleInfo);
messages << "_selBegin" << _selBegin << "\n";
messages << "endPos" << endPos << "\n";
messages << "_selBottomRight" << _selBottomRight << "\n";
messages << "bottomRow Calculation: (_selBottomRight / _columns) = " << _selBottomRight << "/" << _columns << "\n";
messages << "line Calculation: (bottomRow - _history->getLines()) = " << bottomRow << "-" << _history->getLines() << "\n";
messages << "_screenLines.count()" << _screenLines.size() << "\n";
messages << "line" << line << "\n";
messages << "_selBegin" << _selBegin << "\n";
messages << "endPos" << endPos << "\n";
messages << "_selBottomRight" << _selBottomRight << "\n";
messages << "bottomRow Calculation: (_selBottomRight / _columns) = " << _selBottomRight << "/" << _columns << "\n";
messages << "line Calculation: (bottomRow - _history->getLines()) = " << bottomRow << "-" << _history->getLines() << "\n";
messages << "_screenLines.count()" << _screenLines.size() << "\n";
messages << "line" << line << "\n";
}
}
// HACK: do not crash.