terminology/tools/scroll.sh

27 lines
461 B
Bash
Raw Permalink Normal View History

2018-07-17 13:58:51 -07:00
#!/bin/bash
2015-05-31 13:31:13 -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
printf '\033[1;1;11;11\044z'
echo '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
2015-05-31 13:31:13 -07:00
I=0
while [ 1 ]; do
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