Subject: lib/21232: libcurses, content updates corrupt existing window contents
To: None <>
From: None <>
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
>Originator:     Tyler R. Retzlaff
>Release:        NetBSD 1.6R
libcurses bug testing team
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

        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.

        WINDOW *win;

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