summaryrefslogtreecommitdiff
path: root/tests/deccara-rectangular-no-restrict-cursor.sh
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-29 16:58:36 +0100
committerBoris Faure <billiob@gmail.com>2018-12-29 16:58:36 +0100
commit63911989fc12a9be9004295673a6c522531ead82 (patch)
treecb4fc0e9306754ed09eef7c349e9d06376f0e575 /tests/deccara-rectangular-no-restrict-cursor.sh
parent9cb340e29f97f64af1146c426e14a6374d480110 (diff)
termptyesc: handle deccara in its rectangular form + tests
Diffstat (limited to 'tests/deccara-rectangular-no-restrict-cursor.sh')
-rwxr-xr-xtests/deccara-rectangular-no-restrict-cursor.sh58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/deccara-rectangular-no-restrict-cursor.sh b/tests/deccara-rectangular-no-restrict-cursor.sh
new file mode 100755
index 0000000..7e7f99f
--- /dev/null
+++ b/tests/deccara-rectangular-no-restrict-cursor.sh
@@ -0,0 +1,58 @@
1#!/bin/sh
2
3# move to 0; 0
4printf '\033[H'
5# fill space
6PL=0
7for _ in $(seq 0 23); do
8 PL=$((PL+1))
9 if [ $PL -ge 9 ] ; then
10 PL=0
11 fi
12 for _ in $(seq 1 $PL); do
13 printf '#'
14 done
15 PR=$((10 - PL))
16 for _ in $(seq 0 6); do
17 printf '\033[0;1m\-'
18 printf '\033[0;46;1;4m/'
19 printf '\033[0;46;1;4;5m|'
20 printf '\033[0;1;4;5;7m\\'
21 printf '\033[0m~'
22 printf '\033[0;1;5m_'
23 printf '\033[0;31;5;7m>'
24 printf '\033[0;31;4;7m^'
25 printf '\033[0;1;7m<'
26 done
27 printf '\033[0m'
28 for _ in $(seq 1 $PR); do
29 printf '#'
30 done
31done
32
33# move to 0; 0
34printf '\033[H'
35
36# set top/bottom margins:
37printf '\033[5;20r'
38
39# force rectangular modifications
40printf '\033[2*x'
41
42# column reset
43printf '\033[1;10;80;15;0\044r'
44
45# column reset
46printf '\033[1;20;80;25;22;24;25;27\044r'
47
48# reset bold/blink
49printf '\033[1;30;80;35;22;25\044r'
50
51# set bold/underline, remove blink/reverse
52printf '\033[1;40;80;45;1;4;25;27\044r'
53
54# set blink/reverse, remove bold/underline
55printf '\033[1;50;80;55;5;7;22;24\044r'
56
57# set all, remove all
58printf '\033[1;60;80;65;1;4;5;7;0\044r'