kvm: resize gridterm's grid, added checks to NewLine