From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 16:35:31 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0115C1065672 for ; Sun, 20 Feb 2011 16:35:31 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh2.interactivevillages.com (wh2.interactivevillages.com [75.125.250.34]) by mx1.freebsd.org (Postfix) with ESMTP id BC3008FC1E for ; Sun, 20 Feb 2011 16:35:30 +0000 (UTC) Received: from c-24-22-230-24.hsd1.wa.comcast.net ([24.22.230.24] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PrCFp-0006os-TH for freebsd-questions@freebsd.org; Sun, 20 Feb 2011 08:35:27 -0800 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Sun, 20 Feb 2011 08:35:22 -0800 Date: Sun, 20 Feb 2011 08:35:22 -0800 From: Chip Camden To: freebsd-questions@freebsd.org Message-ID: <20110220163522.GA66537@libertas.local.camdensoftware.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <20110220002300.GA21231@thought.org> <201102201417.p1KEH7bf048132@mail.r-bonomi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <201102201417.p1KEH7bf048132@mail.r-bonomi.com> User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh2.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com Subject: Re: variable line-display pager? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2011 16:35:31 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth Robert Bonomi on Sunday, 20 February 2011: > > From owner-freebsd-questions@freebsd.org Sat Feb 19 18:28:20 2011 > > Date: Sat, 19 Feb 2011 16:23:00 -0800 > > From: Gary Kline > > To: FreeBSD Mailing List > > Cc:=20 > > Subject: Re: variable line-display pager? > > > > On Sat, Feb 19, 2011 at 03:52:40PM -0800, Chip Camden wrote: > > > Quoth Gary Kline on Saturday, 19 February 2011: > > > > Need help findind a way of using existing unix utilities to diplay= =20 > > > > chunks of N lines of a text files. Here N <=3D the number of lines= in=20 > > > > the file. > > > > > > > > For instance, say that my xterm/console/"Konsole" is 80x53 lines. M= y=20 > > > > text file is around 200 lines long and I want to use more or less o= r=20 > > > > some GUI pager to display only 15 lines at one time. Tapping the= =20 > > > > space bar would display another 15 lines and so on until EOF. Is= =20 > > > > there a way of doing with with flags of the existing /usr/bin/less = or=20 > > > > is there some other pager that I can build? > > > > > > > > thanks, > > > > > > > > gary > > > > > > > > > > > > > > > > -- > > > > Gary Kline kline@thought.org http://www.thought.org Public=20 > > > > Service Unix > > > > Journey Toward the Dawn, E-Book: http://www.thought.org= =20 > > > > The 7.98a release of Jottings: http://jottings.thought.o= rg > > > > > > > > _______________________________________________ > > > > freebsd-questions@freebsd.org mailing list=20 > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions To=20 > > > > unsubscribe, send any mail to=20 > > > > "freebsd-questions-unsubscribe@freebsd.org" > > > > > > The -z option is supposed to do this: > > > > > > less -z15 file.txt > > > > > > But it appears to work only on the second and successive pages. > > > > > > > > Oh. So _that's_ why. I tried less -m 15 [because the man pages sais= =20 > > z=3DN; i just tried what you did with -z15. Full page first time, 15= =20 > > lines each spacebar thereafter. > > > > Zank you, Sir Chip.. Anybody else? I'm loathe to use anything gui, bu= t=20 > > here's where I'll be happy w ith something GUI THat i can squeeze my= =20 > > "15" or small-n lines' worth into. Can'y believe that there is nothing= =20 > > for all theses years.... I mean, geewhiz! Any idea where I Should look= =20 > > in ports or how to google this? > > >=20 > how hard can it be? >=20 > stty rows=3D15; less filename That's the V8 answer, but the syntax needs correcting: stty rows 15; less filename Works with 'more', too. --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJNYULKAAoJEIpckszW26+RYXgH/0OkakZqjeKysDd4yLv+cFzm D7UJRXaIn2PX6OKVv+eJ1/xbk/n1vcpsI8OGEf7v5/0R2xrcYB/v3t6vMxuaGGx/ oxvNrJ8om0wbzGlstjmgo+rbdjcR7y7buv1QjLLz08yk3ko06kt8v1Lyw90UcXcQ wWvTnfrB5LAv8Qfk5bNgOf7hJNTxxmms9USvQap69Rsj63Ss4h2SLdrQw2M6rW4c WUoHNaQJSvtIGZXteTMrrDTphGlNX2KBnRoEs/ys+FOC5npvI5+Fdavgc6r44+qs Y6G8VlbbP08m7A/bW4H1fvJr8+E8v9cJJq9xwxlPrm0hYNLOC1ux0CSCSmHv4+A= =vf1M -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--