NetBSD Problem Report #2792
Received: (qmail-queue invoked from smtpd); 29 Sep 1996 16:35:30 -0000
Message-Id: <199609291634.LAA03726@taniemarie.solon.com>
Date: Sun, 29 Sep 1996 11:34:05 -0500 (CDT)
From: Peter Seebach <seebs@taniemarie.solon.com>
Reply-To: seebs@taniemarie.solon.com
To: gnats-bugs@gnats.netbsd.org
Subject: Patch for conformance with psd/19.curses
X-Send-Pr-Version: 3.95
>Number: 2792
>Category: lib
>Synopsis: werase() and friends don't move to 0, 0.
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 29 09:50:01 +0000 1996
>Closed-Date: Tue Jun 03 00:04:10 +0000 1997
>Last-Modified: Tue Jun 03 07:05:05 +0000 1997
>Originator: Peter Seebach
>Release: 1.2
>Organization:
Usenet Fact Police
>Environment:
System: NetBSD taniemarie 1.2_BETA NetBSD 1.2_BETA (SEEBS) #0: Fri Aug 16 17:16:09 CDT 1996 seebs@taniemarie:/usr/src/sys/arch/amiga/compile/SEEBS amiga
>Description:
werase(), erase(), wclear(), and clear() are all supposed to move
to 0, 0 in the window erased or cleared. They don't.
I believe I submitted this, and it got bounced for lack of
documentation that this is supposed to happen. So...
clear();
Resets the entire window to blanks. If win is a
screen, this sets the clear flag, which will cause a
clear-screen sequence to be sent on the next refresh()
call. This also moves the current (y, x) co-ordinates
to (0, 0).
erase();
Erases the window to blanks without setting the clear
flag. This is analagous to clear(), except that it
never causes a clear-screen sequence to be generated on
a refresh(). This has no associated "mv" command.
I read this as asserting that erase also moves to 0, 0, because
it is supposed to behave like clear.
This behavior has been observed on other systems, and comes up
because some programs assume the observed behavior, or the documented
behavior.
>How-To-Repeat:
UTSL, or write simple programs that clear a window and put a character
in it.
>Fix:
Patch:
*** erase.c.org Sun Sep 29 11:29:48 1996
--- erase.c Sun Sep 29 11:29:58 1996
***************
*** 68,72 ****
--- 68,73 ----
__touchline(win, y, minx, maxx - win->lines[y]->line,
0);
}
+ wmove(win, 0, 0);
return (OK);
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mikel
State-Changed-When: Tue Jun 3 00:04:10 1997
State-Changed-Why:
fixed by kleink on 970522.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.