How to determine size of xterm?
I want my PERL script to format it's output based on the size of the xterm it's running in. What command will tell me how many rows and columns?
EDIT: Nevermind: the output of 'resize' will produce this. |
just a question
What is wrong with using "more" or " less" ? |
Quote:
You can't use more/less to handle things like that. |
You can check LINES and COLUMNS environment variables.
|
LINES and COLUMNS aren't set for me.
|
Quote:
Code:
~$ env | grep -E 'COLUMNS|LINES' |
All times are GMT -5. The time now is 08:51 PM. |