Override Perforce typos.
[profile.git] / opt / bin / bigscreen
index df235b8..3f30b92 100755 (executable)
@@ -6,7 +6,11 @@
 #
 
 # Resize only if we're at the default size.
-if [ "$(tput lines)" = "24" ]; then
-  usize $(tput cols) 25
-fi
+size=$(stty size)
+oldcols=${size##* }
+oldlines=${size%% *}
+lines=${oldlines:-24}
+
+[ ${lines:-24} -lt 25 ] && lines=25
+[ $lines = $oldlines ] || usize $oldcols $lines
 exec screen ${1+"$@"}