Restore terminal resize handling

when did i lose that? :|