aboutsummaryrefslogtreecommitdiffstats
path: root/tests/decfra-decera-default-values-no-restrict-cursor.sh
blob: 06e8ee2562f65c8f03284d394c87505d3b160615 (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
#!/bin/sh

# move to 0; 0
printf '\033[H'
# fill space
for _ in $(seq 0 23); do
   for _ in $(seq 0 7); do
      printf '\-/|\\~_>^<'
   done
done

# move to 0; 0
printf '\033[H'

#set color
printf '\033[46;31;3m'
# set top/bottom margins:
printf '\033[5;20r'
# allow left/right margins
printf '\033[?69h'
# set left/right margins:
printf '\033[5;74s'

# DECFRA
# fill inside rect with nothing
printf '\033[;10;40;15;45\044x'
# fill inside rect with invalid value
printf '\033[30;10;40;15;45\044x'
# top left corner
printf '\033[64;;;10;10\044x'
# bottom right corner
printf '\033[64;17;70;;\044x'

# DECERA
# top right corner
printf '\033[;70;10;\044z'
# bottom left corner
printf '\033[17;;;10\044z'