|
@@ -27,10 +27,10 @@ the following command:
|
|
if [ -z "$COLUMNS" ]
|
|
if [ -z "$COLUMNS" ]
|
|
then
|
|
then
|
|
# Get the console device if we don't have it already
|
|
# Get the console device if we don't have it already
|
|
- test -z "$CONSOLE" && CONSOLE=/dev/console
|
|
|
|
|
|
+ test -z "$CONSOLE" && CONSOLE=/dev/console
|
|
|
|
|
|
# Get the console size (rows columns)
|
|
# Get the console size (rows columns)
|
|
- SIZE=$(stty size < $CONSOLE)
|
|
|
|
|
|
+ SIZE=$(stty size < $CONSOLE)
|
|
|
|
|
|
# Strip off the rows leaving the columns
|
|
# Strip off the rows leaving the columns
|
|
COLUMNS=${SIZE#*\ }
|
|
COLUMNS=${SIZE#*\ }
|