tests: avoid using $ in printf

This commit is contained in:
Boris Faure 2018-12-28 17:58:53 +01:00
parent a940556cff
commit 49de9aea64
14 changed files with 53 additions and 53 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'

View File

@ -1,6 +1,6 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'
@ -16,7 +16,7 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
printf '\033[64;10;5;20;15$x'
printf '\033[64;10;5;20;15\044x'
# move
printf '\033[19;19H'
@ -28,7 +28,7 @@ printf 'e\033[5Ef'
# set left/right margins:
printf '\033[25;35s'
# fill margin with @
printf '\033[64;10;25;20;35$x'
printf '\033[64;10;25;20;35\044x'
# restrict cursor
printf '\033[?6h'
# move

View File

@ -1,6 +1,6 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'
@ -16,7 +16,7 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
printf '\033[64;10;5;20;15$x'
printf '\033[64;10;5;20;15\044x'
# move
printf '\033[12;19H'
@ -28,7 +28,7 @@ printf 'e\033[5Ff'
# set left/right margins:
printf '\033[25;35s'
# fill margin with @
printf '\033[64;10;25;20;35$x'
printf '\033[64;10;25;20;35\044x'
# restrict cursor
printf '\033[?6h'
# move

View File

@ -1,6 +1,6 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'
@ -18,7 +18,7 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
printf '\033[64;10;5;20;15$x'
printf '\033[64;10;5;20;15\044x'
# move
printf '\033[12;19HF'
@ -26,7 +26,7 @@ printf '\033[12;19HF'
# set left/right margins:
printf '\033[25;35s'
# fill margin with @
printf '\033[64;10;25;20;35$x'
printf '\033[64;10;25;20;35\044x'
# restrict cursor
printf '\033[?6h'
# move

View File

@ -49,7 +49,7 @@ printf '\033[15;30s'
# change color
printf '\033[0m\033[45;32;1m'
# fill restricted region with @
printf '\033[64;10;15;20;30$x'
printf '\033[64;10;15;20;30\044x'
# change color back
printf '\033[0m\033[46;31;3m'
# restrict cursor

View File

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

View File

@ -9,7 +9,7 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
printf '\033[64;10;5;20;15$x'
printf '\033[64;10;5;20;15\044x'
# restrict cursor
printf '\033[?6h'
# reset wrap mode

View File

@ -21,7 +21,7 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
printf '\033[64;10;5;20;15$x'
printf '\033[64;10;5;20;15\044x'
# set wrap mode
printf '\033[?7h'
@ -36,7 +36,7 @@ printf '\033[15;12Habcdefghijkl'
# set left/right margins:
printf '\033[25;35s'
# fill margin with @
printf '\033[64;10;25;20;35$x'
printf '\033[64;10;25;20;35\044x'
# restrict cursor
printf '\033[?6h'
# set wrap mode

View File

@ -10,22 +10,22 @@ printf '\033[26;80HZ'
printf '\033[H'
#DECFRA
printf '\033[64;10;10;;$x'
printf '\033[65;;;8;8;$x'
printf '\033[66;6;;150;3$x'
printf '\033[67;;6;9;150$x'
printf '\033[64;10;10;;\044x'
printf '\033[65;;;8;8;\044x'
printf '\033[66;6;;150;3\044x'
printf '\033[67;;6;9;150\044x'
# invalid coordinates
printf '\033[68;30;20;10;10$x'
printf '\033[68;30;20;10;10\044x'
# invalid characters
printf '\033[;10;10;20;20$x'
printf '\033[31;10;10;20;20$x'
printf '\033[127;10;10;20;20$x'
printf '\033[159;10;10;20;20$x'
printf '\033[;10;10;20;20\044x'
printf '\033[31;10;10;20;20\044x'
printf '\033[127;10;10;20;20\044x'
printf '\033[159;10;10;20;20\044x'
#DECERA
printf '\033[15;15;;$z'
printf '\033[;;3;3$z'
printf '\033[6;;150;3$z'
printf '\033[3;20;;150$z'
printf '\033[15;15;;\044z'
printf '\033[;;3;3\044z'
printf '\033[6;;150;3\044z'
printf '\033[3;20;;150\044z'
# invalid coordinates
printf '\033[30;20;10;10$z'
printf '\033[30;20;10;10\044z'

View File

@ -3,7 +3,7 @@
#set color
printf '\033[46;31;3m'
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
# set top/bottom margins:
printf '\033[10;20r'
# allow left/right margins
@ -11,10 +11,10 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# top left corner
printf '\033[3;5;12;7$z'
printf '\033[3;5;12;7\044z'
# top right corner
printf '\033[8;12;13;17$z'
printf '\033[8;12;13;17\044z'
# bottom left corner
printf '\033[18;3;22;8$z'
printf '\033[18;3;22;8\044z'
# top right corner
printf '\033[17;14;23;18$z'
printf '\033[17;14;23;18\044z'

View File

@ -3,7 +3,7 @@
#set color
printf '\033[46;31;3m'
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
# restrict cursor
printf '\033[?6h'
# set top/bottom margins:
@ -13,10 +13,10 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# top left corner
printf '\033[3;5;12;7$z'
printf '\033[3;5;12;7\044z'
# top right corner
printf '\033[8;12;13;17$z'
printf '\033[8;12;13;17\044z'
# bottom left corner
printf '\033[18;3;22;8$z'
printf '\033[18;3;22;8\044z'
# top right corner
printf '\033[17;14;23;18$z'
printf '\033[17;14;23;18\044z'

View File

@ -11,21 +11,21 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill larger rect with @
printf '\033[64;2;3;23;20$x'
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$x'
printf '\033[91;3;5;12;7\044x'
# top right corner with ]
printf '\033[93;8;12;13;17$x'
printf '\033[93;8;12;13;17\044x'
# bottom left corner with (
printf '\033[40;18;3;22;8$x'
printf '\033[40;18;3;22;8\044x'
# top right corner with )
printf '\033[41;17;14;23;18$x'
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$x'
printf '\033[35;12;12;12;12\044x'
# cursor to 0,0
printf '\033[H'

View File

@ -13,21 +13,21 @@ printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill larger rect with @
printf '\033[64;2;3;23;20$x'
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$x'
printf '\033[91;3;5;12;7\044x'
# top right corner with ]
printf '\033[93;8;12;13;17$x'
printf '\033[93;8;12;13;17\044x'
# bottom left corner with (
printf '\033[40;18;3;22;8$x'
printf '\033[40;18;3;22;8\044x'
# top right corner with )
printf '\033[41;17;14;23;18$x'
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$x'
printf '\033[35;12;12;12;12\044x'
# cursor to 0,0
printf '\033[H'

View File

@ -1,7 +1,7 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
printf '\033[69;1;1;25;80\044x'
# set scrolling mode to fast
printf '\033[?4l'