From robert@fledge.watson.org  Sat Sep 16 07:33:11 2000
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 0DF6F37B423
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Sep 2000 07:33:11 -0700 (PDT)
Received: (from robert@localhost)
	by fledge.watson.org (8.9.3/8.9.3) id KAA00273;
	Sat, 16 Sep 2000 10:33:11 -0400 (EDT)
	(envelope-from robert)
Message-Id: <200009161433.KAA00273@fledge.watson.org>
Date: Sat, 16 Sep 2000 10:33:11 -0400 (EDT)
From: rwatson@freebsd.org
Sender: robert@fledge.watson.org
Reply-To: rwatson@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: new "more" doesn't redraw screen correctly on xterm resize
X-Send-Pr-Version: 3.2

>Number:         21312
>Category:       bin
>Synopsis:       more incorrectly redraws screen on xterm resize
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 16 07:40:00 PDT 2000
>Closed-Date:    Thu Oct 11 18:56:52 UTC 2007
>Last-Modified:  Thu Oct 11 18:56:52 UTC 2007
>Originator:     Robert Watson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

FreeBSD alsvid.watson.org 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sat Sep  9 11:52:39 EDT 2000     robert@alsvid.watson.org:/data/fbsd-current/fresh/cap/src/sys/compile/CAP  i386

>Description:

When running more on a stdin stream, resizing the xterm results in an
incorrect redrawing of the screen -- the current byte count appears both
over-writing the first line, and on the last line as expected.  This
example comes from a cvs update -dP |& more

byte 1869U UPDATING
M contrib/amd/include/am_defs.h
U contrib/diff/util.c
U etc/MAKEDEV
U etc/Makefile
U etc/crontab
U etc/newsyslog.conf
...
U release/sysinstall/tcpip.c
U release/texts/HARDWARE.TXT
byte 1834

>How-To-Repeat:

In an xterm, run some streamed something (cat /usr/src/sys/kern/vfs_syscalls.c
|& more).  Resize the xterm part-way down the stream.  It seems to be
quite reproduceable in my environment, using kwm as the window manager.

>Fix:

Not attached.


>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: freebsd-gnats-submit@FreeBSD.org, rwatson@freebsd.org
Cc:  
Subject: Re: bin/21312
Date: Sat, 12 Jul 2003 23:27:41 -0700

 This behaviour still exists, but the bug report should probably be
 sent to the less developers, since less is maintained externally to
 FreeBSD.
 
 Kris
 

From: Bruce Cran <bruce@cran.org.uk>
To: rwatson@freebsd.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/21312 new "more" doesn't redraw screen correctly on xterm
 resize
Date: Thu, 20 Sep 2007 21:15:30 +0100

 This behaviour still exists in FreeBSD 7.0-CURRENT with Xorg 7.3.
 
 The system I'm using is:
 
 uname -a:
 FreeBSD muon.draftnet 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri Sep 14 
 23:03:19 BST 2007     
 brucec@muon.draftnet:/usr/obj/usr/src/sys/INSPIRON  amd64
 
 xorg-apps-7.3
 xorg-cf-files-1.0.2_2
 xorg-libraries-7.3_1
 xorg-server-1.4,1
 xterm-229
 
 less 406
 
 The problem occurs using both xterm and Gnome Terminal.
 I didn't see anything that looked similar on 
 http://www.greenwoodsoftware.com/less/bugs.html so I've sent an email to 
 the maintainer.
 
 --
 Bruce

From: bruce@cran.org.uk
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/21312: more incorrectly redraws screen on xterm resize
Date: Tue, 2 Oct 2007 10:48:07 +0100

 --x+6KMIRAuhnl3hBn
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 
 --x+6KMIRAuhnl3hBn
 Content-Type: message/rfc822
 Content-Disposition: inline
 
 Return-Path: <markn@greenwoodsoftware.com>
 X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on 
 	muon.bluestop.org
 X-Spam-Level: 
 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,SPF_NEUTRAL 
 	autolearn=no version=3.1.7-deb
 X-Original-To: bruce@cran.org.uk
 Delivered-To: brucec@muon.bluestop.org
 X-Greylist: delayed 1030 seconds by postgrey-1.27 at muon.bluestop.org; Tue, 02 Oct 2007 06:23:04 BST
 Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [216.148.227.151])
 	by muon.bluestop.org (Postfix) with ESMTP id 662013001D
 	for <bruce@cran.org.uk>; Tue,  2 Oct 2007 06:23:04 +0100 (BST)
 Received: from [192.168.1.141] (c-24-6-147-161.hsd1.ca.comcast.net[24.6.147.161])
           by comcast.net (rwcrmhc11) with ESMTP
           id <20071002050050m11003n8l0e>; Tue, 2 Oct 2007 05:00:50 +0000
 Message-ID: <4701D082.4080007@greenwoodsoftware.com>
 Date: Mon, 01 Oct 2007 22:00:50 -0700
 From: Mark Nudelman <markn@greenwoodsoftware.com>
 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
 MIME-Version: 1.0
 To: Bruce Cran <bruce@cran.org.uk>
 Subject: Re: less incorrectly redraws screen on xterm resize
 References: <46F2D783.5080207@cran.org.uk>
 In-Reply-To: <46F2D783.5080207@cran.org.uk>
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hi Bruce,
 Thanks for the report.  This bug should be fixed in less-408, which you 
 can download from http://www.greenwoodsoftware.com/less.
 
 --Mark
 
 
 On 9/20/2007 1:26 PM, Bruce Cran wrote:
 > Hi,
 > 
 > I've come across a problem with less running on a system with Xorg 7.3 
 > and FreeBSD 7.0-CURRENT - less isn't redrawing the screen properly when 
 > a terminal window is resized.  When the window is resized, the page 
 > isn't redrawn at the new size, and pressing 'q' doesn't quit less but 
 > causes the current byte number to be drawn in the first line instead.   
 > This was first reported in the FreeBSD database as bin/21312 and can be 
 > found at http://www.freebsd.org/cgi/query-pr.cgi?pr=21312&cat=bin - 
 > there are more details of the problem at that page.   The problem 
 > doesn't seem to be limited to xterm though: I also see it occur in Gnome 
 > Terminal.
 > 
 > My system is as follows:
 > 
 >  > uname -a
 > FreeBSD muon.draftnet 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri Sep 14 
 > 23:03:19 BST 2007     
 > brucec@muon.draftnet:/usr/obj/usr/src/sys/INSPIRON  amd64
 >  > pkg_info | grep xorg
 > xorg-apps-7.3       X.org apps meta-port
 > xorg-cf-files-1.0.2_2 X.org cf files for use with imake builds
 > xorg-fonts-100dpi-7.3 X.Org 100dpi bitmap fonts
 > xorg-fonts-7.3      X.org fonts meta-port
 > xorg-fonts-75dpi-7.3 X.Org 75dpi bitmap fonts
 > xorg-fonts-cyrillic-7.3 X.Org Cyrillic bitmap fonts
 > xorg-fonts-miscbitmaps-7.3 X.Org miscellaneous bitmap fonts
 > xorg-fonts-truetype-7.3 X.Org TrueType fonts
 > xorg-fonts-type1-7.3 X.Org Type1 fonts
 > xorg-libraries-7.3_1 X.org libraries meta-port
 > xorg-server-1.4,1   X.Org X server and related programs
 >  > less --version
 > less 406
 > Copyright (C) 1984-2005 Mark Nudelman
 > 
 > less comes with NO WARRANTY, to the extent permitted by law.
 > For information about the terms of redistribution,
 > see the file named README in the less distribution.
 > Homepage: http://www.greenwoodsoftware.com/less
 > 
 > -- 
 > Bruce Cran
 
 
 --x+6KMIRAuhnl3hBn--
State-Changed-From-To: open->patched 
State-Changed-By: remko 
State-Changed-When: Mon Oct 8 16:46:40 UTC 2007 
State-Changed-Why:  
This just got imported into -HEAD, reassign to Xin who did the 
import. 


Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Oct 8 16:46:40 UTC 2007 
Responsible-Changed-Why:  
This just got imported into -HEAD, reassign to Xin who did the 
import. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21312 
State-Changed-From-To: patched->closed 
State-Changed-By: delphij 
State-Changed-When: Thu Oct 11 18:56:26 UTC 2007 
State-Changed-Why:  
less v408 was MFC'ed to RELENG_6 which fixes the problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21312 
>Unformatted:
