NetBSD-Bugs archive

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

lib/51673: curses: standend() does not turn off A_BOLD



>Number:         51673
>Category:       lib
>Synopsis:       curses: standend() does not turn off A_BOLD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 29 13:40:00 +0000 2016
>Originator:     Carsten Kunze
>Release:        NetBSD 7.99.42 (GENERIC.201611250700Z) amd64
>Organization:
>Environment:
NetBSD 7.99.42 (GENERIC.201611250700Z) amd64
>Description:
As of http://pubs.opengroup.org/onlinepubs/7908799/xcurses/standend.html standend() should turn off all attribute. A test shows that A_BOLD stays active.
>How-To-Repeat:
The following source compiled with

cc main.c -lcurses

should draw "bold" in bold and "normal" without attributes. But both are displayed in bold. If

attroff(A_BOLD);

or

attrset(A_NORMAL);

is used instead of standend() it works.

#include <curses.h>

int
main()
{
        initscr();
        attron(A_BOLD);
        addstr("bold");
        standend();
        addstr(" normal");
        refresh();
        getch();
        endwin();
        return 0;
}

>Fix:



Home | Main Index | Thread Index | Old Index