summaryrefslogtreecommitdiff
path: root/tests/selection_with_tabs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/selection_with_tabs.sh')
-rwxr-xr-xtests/selection_with_tabs.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/selection_with_tabs.sh b/tests/selection_with_tabs.sh
new file mode 100755
index 0000000..36b2d7e
--- /dev/null
+++ b/tests/selection_with_tabs.sh
@@ -0,0 +1,33 @@
1#!/bin/sh
2
3# char width: 7
4# char height: 15
5
6# clear screen
7printf '\033[2J'
8
9# set color
10printf '\033[46;31;3m'
11
12# move to 2; 2
13printf '\033[2;2H'
14
15# Set string to select
16printf 'a\011b\011'
17
18# mouse down to start selection
19printf '\033}td;0;24;1;0;0\0'
20
21# mouse move
22printf '\033}tm;78;24\0'
23
24# mouse up
25printf '\033}tu;78;24;1;0;0\0'
26
27# force render
28printf '\033}tr\0'
29
30# selection is 'EEEEE'
31printf '\033}ts a\011b\n\0'
32
33