aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cha.sh
blob: 4bca96b4d20c9c63de252f70fb9e7a1328af2b41 (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
41
42
43
#!/bin/sh

# fill space with E
printf '\033[69;1;1;25;80\044x'

#set color
printf '\033[46;31;3m'

# arg = 3
printf '\033[1;10H1\033[3G1'

# no arg
printf '\033[2;10H2\033[G2'

# go too far
printf '\033[3;10H3\033[3333G3'

# arg == 0
printf '\033[4;10H4\033[0G4'

# 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'

# From inside to outside
printf '\033[12;12HA\033[20GA'

# From outside (on the left) to outside (on the right)
printf '\033[12;2HB\033[40GB'

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

# From inside to inside
printf '\033[4;4HC\033[6GC'

# From inside to outside
printf '\033[5;2HD\033[40GD'