Merge branch 'release-2.140.99'
[feisty_meow.git] / scripts / core / inventory.sh
index eeb77039ad4cacc95c434ceeec771214b76370d3..db33f74cf5b0afddab17b93f6fd0e5b96f3ebaa6 100644 (file)
@@ -38,7 +38,7 @@ fi
 # decide whether they've got splitter available or not.
 if [ -f "$FEISTY_MEOW_BINARIES/splitter" -o -f "$FEISTY_MEOW_BINARIES/splitter.exe" ]; then
   # calculate the number of columsn in the terminal.
-  cols=$(stty size | awk '{print $2}')
+  cols=$(get_maxcols)
   splitter="$FEISTY_MEOW_BINARIES/splitter --maxcol $(($cols - 1))"
 else
   # not available, so just emit as huge overly long string.