Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2001 16:35:35 -0500 (CDT)
From:      Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28405: display port does not display properly if number of lines change
Message-ID:  <200106252135.f5PLZZB44201@cauchy.math.missouri.edu>

next in thread | raw e-mail | index | archive | help

>Number:         28405
>Category:       ports
>Synopsis:       display port does not display properly if number of lines change
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 25 14:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
University of Missouri
>Environment:
System: FreeBSD cauchy 4.3-STABLE FreeBSD 4.3-STABLE #0: Tue Jun 12 09:38:34 CDT 2001 stephen@cauchy:/usr/obj/usr/src/sys/cauchy i386


>Description:

This is a problem with the port /usr/ports/misc/display.  Suppose one types

display program

and the program outputs some number of lines.  Then suddenly the program
starts outputting less lines.  Then the old lines are not appropriately
deleted from the output.

>How-To-Repeat:

mkdir junk
cd junk
touch a b c d e f g h
display ls

Then open another window.
cd junk
rm a b c d e

>Fix:

Actually the original program is correct.  The problem is is that patch-aa
introduces this bug by deleting a line that is:

	clrtobot();

So this is the fix:

--- ../display/files/patch-aa	Thu Oct 12 10:48:55 2000
+++ files/patch-aa	Mon Jun 25 16:22:52 2001
@@ -35,11 +35,11 @@
  	char	ch;
  
  	if (!(fp = popen(Command, "r"))) {
-@@ -83,7 +81,6 @@
+@@ -83,7 +81,7 @@
  		addch(ch);
  	}
  	clrtoeol();
--	clrtobot();
+ 	clrtobot();
  	refresh();
  	pclose(fp);
  }

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106252135.f5PLZZB44201>