makeLeft and makeNewline put into include

This commit is contained in:
2020-06-11 12:13:23 +02:00
parent da8dcc7222
commit 822d58734c
5 changed files with 48 additions and 72 deletions

View File

@ -39,5 +39,17 @@ function italicLetters() {
printf "\x1b\x34" >> "$1"
}
function makeNewline() {
for((i=0; i<$1; i++)); do
printf "\n" >> "$2"
done
}
function makeLeft() {
for((i=0; i<$1; i++)); do
printf " " >> "$2"
done
}
init
resetLetters $DEVICE