aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cup.sh
blob: 3c886ed52d8d30a13c7685b58d81ed35a92373c4 (plain) (blame)
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[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'

# move to 7; 7
printf '\033[7;7HA'
printf '\033[;8HB'
printf '\033[8HC'
printf '\033[9;HD'
printf '\033[0;0HE'

# set top/bottom margins:
printf '\033[10;20r'
# allow left/right margins
printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
printf '\033[64;10;5;20;15\044x'

# move
printf '\033[12;19HF'

# Test outside margins
printf '\033[22;22HG'

# set left/right margins:
printf '\033[25;35s'
# fill margin with @
printf '\033[64;10;25;20;35\044x'
# restrict cursor
printf '\033[?6h'
# move
printf '\033[2;2HH'

# Test outside margins
printf '\033[22;22HI'