#!/bin/sh
#program1 for tput
COL=`tput cols`
ROW=`tput lines`
tput clear
tput cup 0 0
echo "left-top"
cols=`tput cols`
col=`expr $cols - 9`
tput cup 0 $col
echo "right-top"
lines=`tput lines`
line=`expr $lines - 1`
tput cup $line 0
echo -n "left-bottom"
col=`expr $cols - 12`
tput cup $line $col
echo -n "right-bottom"
line=`expr $lines / 2`
col=`expr $cols / 2`
tput cup $line $col
tput sgr0
read answer
阅读(1403) | 评论(0) | 转发(0) |