March, 2007


8
Mar 07

Resize Terminal

Before I switched to Mac OS X, I was using a Sun Solaris machine as a desktop, and fvwm2 as my window manager. Fvwm has a nice feature called “grow window” which lets you grow a window to the full height of the display. This was occasionally useful for other programs, but I used this feature constantly for terminal windows, particularly when writing code. The extra vertical space really makes it easier to maneuver around a file. So when I came to OS X, naturally my first foray into Applescript was to port this feature so I could keep my lovely “tall” terminal windows.

This script will cycle through three sizes:

  • “normal” (default: 80×24)
  • “tall” (default: 80×50)
  • zoomed

If the window isn’t in any of those states, it is set to normal size. The sizes are all customizable by setting property values at the top of the script.

Download resize_terminal.zip