Re #1352 Change the method to get the height of the console.