Determine the size of the terminal.