Example #1
0
/***
Set the attributes for soft labels.
@function slk_attrset
@int attrs
@treturn bool `true`, if successful
@see slk_attrset(3x)
*/
static int
Pslk_attrset(lua_State *L)
{
	chtype attrs = checkch(L, 1);
#if LCURSES_POSIX_COMPLIANT
	return pushokresult(slk_attrset(attrs));
#else
	return binding_notimplemented(L, "slk_attrset", "curses");
#endif
}
Example #2
0
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));
}