On 23/02/12 22:42, Alan Mackenzie wrote:
I've
set the threshold between the two cases at 60 lines.  If your screen is
a different size, change the two obvious bits.

You can use the $LINES env variable to get the height of the current terminal. Another way to get them is with the "tput" command. "tput lines" and "tput cols" print the amount of lines and columns on stdout.


Reply via email to