NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/55496: [libcurses] bkgrnd() doesn't works as expected

>Number:         55496
>Category:       lib
>Synopsis:       [libcurses] bkgrnd() doesn't works as expected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 18 20:05:00 +0000 2020
>Originator:     Naman Jain
>Release:        NetBSD 9.0
IIT Kanpur
NetBSD localhost 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 amd64
bkgrnd() does not work as expected.

bkgrnd(wch) followed by refresh() should update the rendition for all the characters.

It does not update the screen, instead just updates the value of background character.

See bkgd() for more details, which is expected to behave similarly. bkgd() works correctly.
A simple program like:

#include <curses.h>
#include <wchar.h>

int main() {

    cchar_t ch;
    wchar_t wstr[] = {0x61, L'\0'};
    setcchar(&ch, wstr, 0x100, 0, NULL);

    return 0;
wbkgrnd() needs to update window similar(though not exactly) to what is done in wbkgd()

Home | Main Index | Thread Index | Old Index