2018-07-17 13:58:51 -07:00
|
|
|
#!/bin/bash
|
2015-05-31 13:31:13 -07:00
|
|
|
|
2018-09-29 08:21:27 -07:00
|
|
|
# fill space with E
|
|
|
|
printf '\033#8'
|
|
|
|
# cursor to 0,0
|
|
|
|
printf '\033[H'
|
|
|
|
# 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'
|
|
|
|
# move to 0,0 with margins:
|
|
|
|
printf '\033[H'
|
|
|
|
# clean up rect
|
2018-09-29 08:50:07 -07:00
|
|
|
printf '\033[1;1;11;11\044z'
|
2018-09-29 08:21:27 -07:00
|
|
|
echo '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
|
|
|
|
|
2015-05-31 13:31:13 -07:00
|
|
|
I=0
|
|
|
|
while [ 1 ]; do
|
2018-09-29 08:21:27 -07:00
|
|
|
sleep 2
|
2015-05-31 13:31:13 -07:00
|
|
|
echo $I
|
2018-07-24 10:40:23 -07:00
|
|
|
I=$((I + 1))
|
2015-05-31 13:31:13 -07:00
|
|
|
done
|