Terminal control/Determine the height and width of the terminal window