Recognize '\033c' - RIS, reset terminal state

This commit is contained in:
Fredrik Fornwall
2016-01-19 12:05:38 +01:00
parent bee305e53f
commit b2b39abacd
2 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,11 @@ public class DecSetTest extends TerminalTestCase {
assertFalse(mTerminal.isShowingCursor());
mTerminal.reset();
assertTrue("Resetting the terminal should show the cursor", mTerminal.isShowingCursor());
enterString("\033[?25l");
assertFalse(mTerminal.isShowingCursor());
enterString("\033c"); // RIS resetting should reveal cursor.
assertTrue(mTerminal.isShowingCursor());
}
/** DECSET 2004, controls bracketed paste mode. */