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