Added slk_attr_*.

This commit is contained in:
William McBrine
2006-06-19 03:36:38 +00:00
parent b7e5a15e81
commit d344b88e7c
3 changed files with 32 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: curses.h,v 1.180 2006/06/19 03:21:46 wmcbrine Exp $ */
/* $Id: curses.h,v 1.181 2006/06/19 03:36:38 wmcbrine Exp $ */
/*----------------------------------------------------------------------*
* PDCurses *
@@ -1401,8 +1401,11 @@ int scr_set(const char *);
int setscrreg(int, int);
SCREEN *set_term(SCREEN *);
int slk_attroff(const chtype);
int slk_attr_off(const attr_t, void *);
int slk_attron(const chtype);
int slk_attr_on(const attr_t, void *);
int slk_attrset(const chtype);
int slk_attr_set(const attr_t, short, void *);
int slk_clear(void);
int slk_color(short);
int slk_init(int);

View File

@@ -371,8 +371,11 @@ FUNCTIONS
setterm terminfo
setupterm terminfo
slk_attroff slk
slk_attr_off slk
slk_attron slk
slk_attr_on slk
slk_attrset slk
slk_attr_set slk
slk_clear slk
slk_color slk
slk_init slk

View File

@@ -33,7 +33,7 @@
#undef slk_attroff
#undef slk_color
RCSID("$Id: slk.c,v 1.22 2006/03/29 20:06:41 wmcbrine Exp $");
RCSID("$Id: slk.c,v 1.23 2006/06/19 03:36:38 wmcbrine Exp $");
/*man-start**************************************************************
@@ -49,8 +49,11 @@ RCSID("$Id: slk.c,v 1.22 2006/03/29 20:06:41 wmcbrine Exp $");
int slk_restore(void);
int slk_touch(void);
int slk_attron(const chtype attrs);
int slk_attr_on(const attr_t attrs, void *opts);
int slk_attrset(const chtype attrs);
int slk_attr_set(const attr_t attrs, short color_pair, void *opts);
int slk_attroff(const chtype attrs);
int slk_attr_off(const attr_t attrs, void *opts);
int slk_color(short color_pair);
X/Open Description:
@@ -376,6 +379,13 @@ int slk_attron(const chtype attrs)
return rc;
}
int slk_attr_on(const attr_t attrs, void *opts)
{
PDC_LOG(("slk_attr_on() - called\n"));
return slk_attron(attrs);
}
int slk_attroff(const chtype attrs)
{
int i, rc;
@@ -390,6 +400,13 @@ int slk_attroff(const chtype attrs)
return rc;
}
int slk_attr_off(const attr_t attrs, void *opts)
{
PDC_LOG(("slk_attr_off() - called\n"));
return slk_attroff(attrs);
}
int slk_attrset(const chtype attrs)
{
int i, rc;
@@ -418,6 +435,13 @@ int slk_color(short color_pair)
return rc;
}
int slk_attr_set(const attr_t attrs, short color_pair, void *opts)
{
PDC_LOG(("slk_attr_set() - called\n"));
return slk_attrset(attrs | COLOR_PAIR(color_pair));
}
static void PDC_slk_init(void)
{
int i;