Commit c3b3ef19 authored by Luis Javier Merino's avatar Luis Javier Merino
Browse files

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
parent 22f84302
......@@ -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();
}
......
Markdown is supported
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