Kubernetes stuff.
[profile.git] / opt / bin / bigscreen
1 #!/bin/bash
2 #
3 # bigscreen: Start screen, resizing the current window to allow a hardstatus 
4 #            line in addition to an 80x24 display.
5 # Usage: bigscreen [args]
6 #
7
8 # Resize only if we're at the default size.
9 size=$(stty size)
10 oldcols=${size##* }
11 oldlines=${size%% *}
12 lines=${oldlines:-24}
13
14 [ ${lines:-24} -lt 25 ] && lines=25
15 [ $lines = $oldlines ] || usize $oldcols $lines
16 exec screen ${1+"$@"}