Resize a frame to meet the terminal dimensions Calculating the output terminal dimensions (cols, rows), we can to get a reduction factor to resize the frame according to the height of the terminal mainly to print each frame at a time, using all the available rows Args: frame: Frame to resize dimensions: If you want to set a printer area size (cols, rows) Returns: A resized frame