Truncate width and height to terminal