Changing either cols or rows field calls same method now to resize the terminal