random patches

random things that seem to work on my machine, have to run now so will clean later just FYI
What's the advantage of recalculating the row height and width on every resize? Does that handle browser zooming better?

I see you brought the max down. I ran it without the maximum, and it cheerfully tried to make me an Infinity x Infinity sized terminal, which locked the browser up.