do not show more lines than terminal height