From c3b3ef19050b55e2dc7fc86cbf3efd1bb3f51601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Javier=20Merino=20Mor=C3=A1n?= Date: Mon, 29 Mar 2021 00:12:08 +0200 Subject: [PATCH] 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 --- src/Screen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Screen.cpp b/src/Screen.cpp index 4dda21d5..c3b3ec6d 100644 --- a/src/Screen.cpp +++ b/src/Screen.cpp @@ -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(); }