summaryrefslogtreecommitdiffstats
path: root/src/libvterm/t/65screen_protect.test
diff options
context:
space:
mode:
Diffstat (limited to 'src/libvterm/t/65screen_protect.test')
-rw-r--r--src/libvterm/t/65screen_protect.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libvterm/t/65screen_protect.test b/src/libvterm/t/65screen_protect.test
new file mode 100644
index 0000000..ec412a5
--- /dev/null
+++ b/src/libvterm/t/65screen_protect.test
@@ -0,0 +1,16 @@
+INIT
+WANTSCREEN
+
+!Selective erase
+RESET
+PUSH "A\e[1\"qB\e[\"qC"
+ ?screen_row 0 = "ABC"
+PUSH "\e[G\e[?J"
+ ?screen_row 0 = " B"
+
+!Non-selective erase
+RESET
+PUSH "A\e[1\"qB\e[\"qC"
+ ?screen_row 0 = "ABC"
+PUSH "\e[G\e[J"
+ ?screen_row 0 = ""