On Thursday 23 July 2009 11:33:00 pm Randall R Schulz wrote:
On Thursday July 23 2009, Randall R Schulz wrote:
...
% tsize rows 97; columns 180
It can easily be modified to output a COLUMNS (or ROWS) -setting command, of course.
... Or LINES, as the case may be.
RRS
OK, This is it! #!/bin/bash --norc tmp=$(stty -a) tmp=${tmp##*rows\ } rows=${tmp%%;*} tmp=${tmp##*columns\ } cols=${tmp%%;*} echo "rows: $rows; cols: $cols" Now it they just don't change the output format of stty -a.... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org