Add bkgd() and bkgdset() (which were previously just macros).
This commit is contained in:
parent
5daa179562
commit
032680bbac
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: background.c,v 1.3 2000/04/15 13:17:02 blymn Exp $ */
|
||||
/* $NetBSD: background.c,v 1.4 2000/04/16 09:52:49 jdc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -39,6 +39,26 @@
|
|||
#include "curses.h"
|
||||
#include "curses_private.h"
|
||||
|
||||
/*
|
||||
* bkgdset
|
||||
* Set new background attributes on stdscr.
|
||||
*/
|
||||
void
|
||||
bkgdset(chtype ch)
|
||||
{
|
||||
wbkgdset(stdscr, ch);
|
||||
}
|
||||
|
||||
/*
|
||||
* bkgd --
|
||||
* Set new background and new background attributes on stdscr.
|
||||
*/
|
||||
int
|
||||
bkgd(chtype ch)
|
||||
{
|
||||
return(wbkgd(stdscr, ch));
|
||||
}
|
||||
|
||||
/*
|
||||
* wbkgdset
|
||||
* Set new background attributes.
|
||||
|
@ -49,7 +69,7 @@ wbkgdset(WINDOW *win, chtype ch)
|
|||
win->bchar = (wchar_t) ch & A_CHARTEXT;
|
||||
win->battr = (attr_t) ch & A_ATTRIBUTES;
|
||||
#ifdef DEBUG
|
||||
__CTRACE ("wbkgdset: %08x, %08x\n", win->bchar, win->battr);
|
||||
__CTRACE("wbkgdset: %08x, %08x\n", win->bchar, win->battr);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -62,7 +82,7 @@ wbkgd(WINDOW *win, chtype ch)
|
|||
{
|
||||
wbkgdset(win, ch);
|
||||
__touchwin(win);
|
||||
return (OK);
|
||||
return(OK);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: curses.h,v 1.35 2000/04/16 01:23:11 thorpej Exp $ */
|
||||
/* $NetBSD: curses.h,v 1.36 2000/04/16 09:52:49 jdc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
|
@ -423,6 +423,8 @@ int addbytes(const char *bytes, int count);
|
|||
int addch(chtype ch);
|
||||
int addnstr(const char *str, int n);
|
||||
int addstr(const char *str);
|
||||
int bkgd(chtype ch);
|
||||
void bkgdset(chtype ch);
|
||||
int border(chtype left, chtype right, chtype top, chtype bottom,
|
||||
chtype topleft, chtype topright, chtype botleft, chtype botright);
|
||||
int clear(void);
|
||||
|
|
Loading…
Reference in New Issue