summaryrefslogtreecommitdiff
path: root/tests/dsr-cpr.sh
blob: e15426618ca53e3a3920e35d472963348bed41e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

# fill space with E
printf '\033#8'
#set color
printf '\033[46;31;3m'

# cursor to 7,4
printf '\033[7;4H'
# Request cursor position
printf '\033[6n'
# Request cursor position (dec)
printf '\033[?6n'

sleep 0.2

# set top/bottom margins:
printf '\033[10;20r'
# allow left/right margins
printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'

# cursor to 17,14
printf '\033[17;14H'

# Request cursor position
printf '\033[6n'
# Request cursor position (dec)
printf '\033[?6n'

sleep 0.2

# restrict cursor
printf '\033[?6h'

# Request cursor position
printf '\033[6n'
# Request cursor position (dec)
printf '\033[?6n'