RIS goes to (1,1) and clears tab stops

RIS (ESC c) - Hard Reset should move the cursor to (1,1) and clear tab
stops.

From esctest:
RISTests.test_RIS_CursorToOrigin
RISTests.test_RIS_ResetTabs
This commit is contained in:
Luis Javier Merino Morán
2021-03-29 00:12:08 +02:00
parent 22f8430275
commit c3b3ef1905

View File

@@ -754,6 +754,7 @@ void Screen::reset()
// Clear screen, but preserve the current line
scrollUp(0, _cuY);
_cuY = 0;
_cuX = 0;
_currentModes[MODE_Origin] = 0;
_savedModes[MODE_Origin] = 0;
@@ -774,6 +775,7 @@ void Screen::reset()
// Other terminal emulators reset the entire scroll history during a reset
// setScroll(getScroll(), false);
initTabStops();
setDefaultRendition();
saveCursor();
}