summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-10-27 16:21:03 +0100
committerBoris Faure <billiob@gmail.com>2019-10-27 16:21:03 +0100
commit6148707ee71adcb553f52c3dedd2452d44cc0c8b (patch)
tree8a499ac56da9bb7f640348cc52b084217ede3595
parente197c04f65b01fd75f85e6b73135bbda69f4633f (diff)
tests: works better with the file being committed xD
-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