Fixed terminal size globals not getting set correctly during initialization