Change default and minimum terminal height

... from 25 back to 24 lines.

It was changed in #5748 (don't know why).