tput - determining window size
Hi,
Is it possible to determine the current height and width of my terminal window using tput? Thanks in advance, Subu |
Most shells support two variables:
COLUMNS LINES Code:
echo "my terminal is $COLUMNS x $LINES" |
Found it:-
echo "Your terminal is of size `tput lines` * `tput cols`" |
All times are GMT -5. The time now is 02:15 AM. |