Subject: lib/21232: libcurses, content updates corrupt existing window contents
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rtr@netbsd.org>
List: netbsd-bugs
Date: 04/19/2003 13:16:15
>Number:         21232
>Category:       lib
>Synopsis:       libcurses, content updates corrupt existing window contents
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 19 13:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tyler R. Retzlaff
>Release:        NetBSD 1.6R
>Organization:
libcurses bug testing team
>Environment:
System: NetBSD elysium 1.6R NetBSD 1.6R (GENERIC) #0: Mon Apr 14 16:51:59 EST 20
03 rtr@:/x/scratch/obj/netbsd/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386

>Description:
        When adding something to a WINDOW with existing contents the                   
        existing contents are foobed up even though the screen space
        the existing contents occupy is not touched.

        Attached code shows how box is corrupted even though space it
        occupies is not touched.  It's possible this should be a change
        request and not a bug I didn't look the standard up.


>How-To-Repeat:
        WINDOW *win;

        initscr();
        win = newwin(LINES, COLS, 0, 0);
        box(win, 0, 0);
        wrefresh(win);
        getch();
        mvwaddstr(win, 4, 4, "I smell coffee");
        wrefresh(win);
        getch();
        endwin();

>Fix:

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