Debian Bug report logs - #53962
Incorrect documentation or definition (?) for wattr_set

version graph

Package: libncurses5-dev; Maintainer for libncurses5-dev is Craig Small <>; Source for libncurses5-dev is src:ncurses.

Reported by: Daniel Burrows <>

Date: Mon, 3 Jan 2000 21:18:01 UTC

Severity: normal

Found in version 5.0-2

Done: Daniel Jacobowitz <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian ncurses Team <>:
Bug#53962; Package libncurses5-dev. Full text and rfc822 format available.

Acknowledgement sent to Daniel Burrows <>:
New Bug report received and forwarded. Copy sent to Debian ncurses Team <>. Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Daniel Burrows <>
To: Debian Bug Tracking System <>
Subject: Incorrect documentation or definition (?) for wattr_set
Date: Mon, 3 Jan 2000 16:06:45 -0500
Package: libncurses5-dev
Version: 5.0-2
Severity: normal

  Just to bring this to your attention..

  The libncurses5 documentation shows the following prototypes for (w)attr_set:
int attr_set(attr_t attrs, void *opts);
int wattr_set(WINDOW *win, attr_t attrs, void *opts);

  This seems as it should be (although the 'opts' argument is new in this
version); following the Curses convention, 'wattr_set' just adds a window
argument.  However, the header file actually defines the following routines
and macros:

extern int attr_set(attr_t, short, void *);             /* generated */
extern int wattr_set(WINDOW *, attr_t, short, void *);          /* generated */
#define wattr_set(win,a,p,opts) ((win)->_attrs = (((a) & ~A_COLOR) | COLOR_PAIR(
p)), OK)
#define attr_set(a,pair,opts)           wattr_set(stdscr,a,pair,opts)

  It seems fairly clear to me that the documentation leaves out a parameter,
probably the number of a color pair that should be passed as the third argument.
attr.3ncurses.gz is what'll need to be updated (documentation about the function
of 'opts' would be nice as well if you can manage it)


-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux palantir 2.2.13 #1 Wed Nov 24 22:48:00 EST 1999 i686

Versions of packages libncurses5-dev depends on:
ii  libc6-dev                     2.1.2-11   GNU C Library: Development Librari
ii  libncurses5                   5.0-2      Shared libraries for terminal hand

There are many of us in this old world of ours who hold that things break
about even for all of us.  I have observed, for example, that we all get
about the same amount of ice.  The rich get it in the summer and the poor
get it in the winter.
		-- Bat Masterson

Bug closed, send any further explanations to Daniel Burrows <> Request was from Daniel Jacobowitz <> to Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Sat Apr 19 14:45:42 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.