Further line-count adjustments
2 files changed, 13 insertions(+), 2 deletions(-)

M buildpager
M buildrunner
M buildpager +1 -1
@@ 45,7 45,7 @@ is_warning() {
    [[ "$1" =~ 'arning: ' ]]
 }
 
-max_lines=24
+max_lines=24  # "after start of error", so not full terminal height
 if [ -n "$LINES" ]; then
     case "$LINES" in
         ?) ;;

          
M buildrunner +12 -1
@@ 41,6 41,17 @@ if [ $(basename $PWD) = "build" ] && [ -
     sleep 1
 fi
 
+max_lines=30
+if [ -n "$LINES" ]; then
+    case "$LINES" in
+        ?) ;;
+        [123]?) ;;
+        *) max_lines=$(($LINES - 5));;
+    esac
+fi
+
+echo "max lines $max_lines"
+
 "$m" -x "$@"
 
 while true; do

          
@@ 52,7 63,7 @@ while true; do
 	echo " ** Up-to-date in `pwd`"
     else 
 	clear
-	tail -35 "$tmpfile"
+	tail -"$max_lines" "$tmpfile"
     fi
 
     echo