Resizing Terminal according to window size