From owner-freebsd-current@FreeBSD.ORG Sat Jun 16 07:36:22 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 1F66716A400 for ; Sat, 16 Jun 2007 07:36:22 +0000 (UTC) (envelope-from tom@uffner.com) Received: from eris.uffner.com (eris.uffner.com [207.245.121.212]) by mx1.freebsd.org (Postfix) with ESMTP id D23F513C484 for ; Sat, 16 Jun 2007 07:36:21 +0000 (UTC) (envelope-from tom@uffner.com) Received: from xiombarg.uffner.com (static-71-162-143-94.phlapa.fios.verizon.net [71.162.143.94]) by eris.uffner.com (8.13.3/8.13.3) with ESMTP id l5G7aK0a010802 for ; Sat, 16 Jun 2007 03:36:20 -0400 (EDT) (envelope-from tom@uffner.com) Message-ID: <467392F4.9020200@uffner.com> Date: Sat, 16 Jun 2007 03:36:20 -0400 From: Tom Uffner User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070522 SeaMonkey/1.1.1 MIME-Version: 1.0 To: current@freebsd.org References: <4671C5AF.9040203@uffner.com> In-Reply-To: <4671C5AF.9040203@uffner.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (eris.uffner.com [192.168.1.212]); Sat, 16 Jun 2007 03:36:20 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.6/3424/Thu Jun 14 21:30:29 2007 on eris.uffner.com X-Virus-Status: Clean Cc: Subject: Re: annoying behavior in less(1) after v403 import 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: Sat, 16 Jun 2007 07:36:22 -0000 Tom Uffner wrote: > the recently imported new version of less (Mon Jun 4 01:42:44 2007 UTC > (10 days, 19 hours ago) by delphij) appears to have a bug that appears > when using the -e or --quit-at-eof option. to see this bug, you also need the 'c' & 'w' options, and output that is more than one screen long. for example: [tatooine:/usr/src/contrib/less:ttyp4] less -ecw scrsize.c (hit space until you reach the last page, then one more time) less exits leaving your cursor near the top of screen in the middle of the text that was displayed there, and does not correctly restore the terminal settings: return 1; [tatooine:/usr/src/contrib/less:ttyp4] return 1; if (!(hints.flags & PResizeInc)) return 1; if (hints.width_inc == 0 || hints.height_inc == 0) return 1; if (!(hints.flags & (PBaseSize|PMinSize))) return 1; if (hints.flags & PBaseSize) ... ~ ~ (END)