#!/bin/bash
echo -n count:
tput sc count=;
while true;
do
if [ $count -lt ];
then
let count++;
sleep ;
tput rc
tput ed
echo -n $count;
else exit ;
fi
done

tput sc 存储光标位置;

tput rc 恢复光标位置;

tput ed 清除从当前光标位置到行尾之间的所有内容

04-21 04:20