From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S0fg8-0000cC-UB for garchives@archives.gentoo.org; Thu, 23 Feb 2012 20:54:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56DFEE0F8D; Thu, 23 Feb 2012 20:54:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2B0A1E0F84 for ; Thu, 23 Feb 2012 20:53:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B1AC16443E for ; Thu, 23 Feb 2012 20:53:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.887 X-Spam-Level: X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5.5 tests=[AWL=0.023, BAYES_00=-1.9, FREEMAIL_FROM=0.001, FSL_RCVD_USER=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ottFdvJMNSUG for ; Thu, 23 Feb 2012 20:53:02 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C4052643ED for ; Thu, 23 Feb 2012 20:53:01 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S0feo-0004hK-NY for gentoo-user@gentoo.org; Thu, 23 Feb 2012 21:52:54 +0100 Received: from athedsl-343073.home.otenet.gr ([85.72.195.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Feb 2012 21:52:54 +0100 Received: from realnc by athedsl-343073.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Feb 2012 21:52:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: dog - man's best friend. Date: Thu, 23 Feb 2012 22:52:42 +0200 Organization: Lucas Barks Message-ID: References: <20120223204200.GE2834@acm.acm> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-343073.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120213 Thunderbird/10.0.1 In-Reply-To: <20120223204200.GE2834@acm.acm> X-Archives-Salt: 76afd550-c135-427c-808e-1783cbf4e476 X-Archives-Hash: eea312f808dcdacec819a105b7f0eeb9 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.