Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: dog - man's best friend.
Date: Thu, 23 Feb 2012 20:54:17
Message-Id: ji68us$dbu$1@dough.gmane.org
In Reply to: [gentoo-user] dog - man's best friend. by Alan Mackenzie
1 On 23/02/12 22:42, Alan Mackenzie wrote:
2 > I've
3 > set the threshold between the two cases at 60 lines. If your screen is
4 > a different size, change the two obvious bits.
5
6 You can use the $LINES env variable to get the height of the current
7 terminal. Another way to get them is with the "tput" command. "tput
8 lines" and "tput cols" print the amount of lines and columns on stdout.