COLUMNS in busybox?

Paul Fox pgf at brightstareng.com
Tue May 2 01:12:38 UTC 2006


i wrote:
 >  > 
 >  > No standard for COLUMNS, obviously.
 > 
 > here you go:
 >     COLUMNS=$(stty -a | sed -e 's/.*rows \([0-9]\+\).*/\1/' -e 1q)
 > 
 > actually, i'm surprised stty doesn't have a way of retrieving
 > individual settings by now.  e.g., "COLUMNS=$(stty rows)".

oops!!!

    "s/rows/columns/g"

:-)

i can't tell left from right, either...

=---------------------
 paul fox, pgf at brightstareng.com



More information about the busybox mailing list