aboutsummaryrefslogtreecommitdiffstats
path: root/tests/decaln.sh
blob: 57245a3cb6cdb487a48fdc90354b554e02145e54 (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
44
45
46
47
48
#!/bin/sh
#set color
printf '\033[46;31;3m'

# 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'
# restrict cursor
printf '\033[?6h'
# reset wrap mode
printf '\033[?7l'

# set tabs
printf '\033H\033H\033[3C\033H\033[4C\033H\033[5C\033H\033[6C\033H'
printf '\033[7C\033H\033[8C\033H\033[9C#'

# set cursor shape
printf '\033[4 q'

#move to 4;4
# DECALN has to reset cursor to 0;0
printf '\033[4;4H'

# fill space with E
printf '\033#8'

printf 'start'
#move to 0;0
printf '\033[HST'

printf '\n#\t#\033[2I\033[3g@\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'

# move to 1; 75
printf '\033[1;75Habcdefghijkl'
# shall be no wrap and in color. also no margin

#set margins again, cursor is still restricted
# set top/bottom margins:
printf '\033[10;20r'
# set left/right margins:
printf '\033[5;15s'
#move to 0;0
printf '\033[22;22H2'