Hi,
I am programming a script that shows a figure on screen but I would be centered, so What I have to use command to get the size of the window?
Thanks a lot,
Hi,
I am programming a script that shows a figure on screen but I would be centered, so What I have to use command to get the size of the window?
Thanks a lot,
The command that will help you is resize the man page is at:
Man Page for resize (Linux Section 1) - The UNIX and Linux Forums
If $COLUMNS and $LINES aren't set in the script's environment, perhaps you can use:
tput cols # columns (width)
tput lines # lines (height)
Regards,
Alister