aboutsummaryrefslogtreecommitdiffstats
path: root/tests/decfra-restrict-cursor.sh
blob: 795d317e06d3c60f656604bf6400242ae671034d (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
#!/bin/sh

# fill space with E
printf '\033#8'
#set color
printf '\033[46;31;3m'
# restrict cursor
printf '\033[?6h'
# set top/bottom margins:
printf '\033[10;20r'
# allow left/right margins
printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill larger rect with @
printf '\033[64;2;3;23;20\044x'
# change color
printf '\033[0m\033[45;32;1m'
# top left corner with [
printf '\033[91;3;5;12;7\044x'
# top right corner with ]
printf '\033[93;8;12;13;17\044x'
# bottom left corner with (
printf '\033[40;18;3;22;8\044x'
# top right corner with )
printf '\033[41;17;14;23;18\044x'
# change color
printf '\033[0m\033[44;33;4m'
# one in center with #
printf '\033[35;12;12;12;12\044x'

# cursor to 0,0
printf '\033[H'
echo '--------------------------------------------------'