mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Add screen wraparound test
This commit is contained in:
@@ -59,4 +59,15 @@ public class DecSetTest extends TerminalTestCase {
|
|||||||
assertEquals("Terminal reset() should disable bracketed paste mode", "a", mOutput.getOutputAndClear());
|
assertEquals("Terminal reset() should disable bracketed paste mode", "a", mOutput.getOutputAndClear());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** DECSET 7, DECAWM, controls wraparound mode. */
|
||||||
|
public void testWrapAroundMode() {
|
||||||
|
// Default with wraparound:
|
||||||
|
withTerminalSized(3, 3).enterString("abcd").assertLinesAre("abc", "d ", " ");
|
||||||
|
// With wraparound disabled:
|
||||||
|
withTerminalSized(3, 3).enterString("\033[?7labcd").assertLinesAre("abd", " ", " ");
|
||||||
|
enterString("efg").assertLinesAre("abg", " ", " ");
|
||||||
|
// Re-enabling wraparound:
|
||||||
|
enterString("\033[?7hhij").assertLinesAre("abh", "ij ", " ");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user