From owner-freebsd-current@FreeBSD.ORG Thu Jul 19 09:50:54 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13E6B16A400 for ; Thu, 19 Jul 2007 09:50:54 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id 92FB613C4AC for ; Thu, 19 Jul 2007 09:50:53 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l6J9oh7j001792; Thu, 19 Jul 2007 19:50:43 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l6J9oheV001791; Thu, 19 Jul 2007 19:50:43 +1000 (EST) (envelope-from peter) Date: Thu, 19 Jul 2007 19:50:43 +1000 From: Peter Jeremy To: Rui Paulo Message-ID: <20070719095043.GT1141@turion.vk2pj.dyndns.org> References: <469D651C.6080504@fnop.net> <40882.1184765616@snapdragon.csl.sri.com> <469E737B.5090609@fnop.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <469E737B.5090609@fnop.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: current@freebsd.org Subject: Re: less -r broken with long lines X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 09:50:54 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Jul-18 21:09:31 +0100, Rui Paulo wrote: >It depends on the interpretation. "various display problems may result" >may very well be a reference to the fact that control characters mangle >the output. I wasn't expecting long lines to mangle the output. If you >less -r a file without control characters, but with a least a line wider >than your screen size, you'll notice the problem. I think the behaviour of "less" is reasonable. To correctly work out how many lines of input will fill the screen, "less" needs to identify if/where the terminal will split a string of characters into distinct physical lines. In the face of arbitrary control sequences, it is impossible for "less" to determine this since it cannot know how a particular string will be processed. (It can't rely on termcap/info strings because they are unlikely to document all terminal features). --=20 Peter Jeremy --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGnzPz/opHv/APuIcRAknyAJ92Rq9GqmSYc14tACfjZAR2Z8TfVACfUthN MJqEqtHBuBq5Q1GQBxq8CTQ= =3qWS -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--