Change resizing terminals to work for top and left edges too, the code is a little...