#!/bin/sh
tput1()
{
line=`tput lines`
cols=`tput cols`
tput clear
tput cup 0 0
echo "left-top\c"
tput cup 0 `expr $cols - 9`
echo "right-top\c"
tput cup $line 0
echo "left-bottom\c"
tput cup $line `expr $cols - 12`
echo "right-bottom\c"
cline=`expr $line / 2`
ccols=`expr $cols / 2`
tput cup $cline $ccols
}
while true
do
tput1
sleep 0.5
done
阅读(662) | 评论(0) | 转发(0) |