#!/bin/bash # # bigscreen: Start screen, resizing the current window to allow a hardstatus # line in addition to an 80x24 display. # Usage: bigscreen [args] # # Resize only if we're at the default size. size=$(stty size) oldcols=${size##* } oldlines=${size%% *} lines=${oldlines:-24} [ ${lines:-24} -lt 25 ] && lines=25 [ $lines = $oldlines ] || usize $oldcols $lines exec screen ${1+"$@"}