summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/lib_clrbot.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-11-26 04:01:02 +0000
committermillert <millert@openbsd.org>1997-11-26 04:01:02 +0000
commit010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b (patch)
tree5ee5e7213ad9b412a927de7effdcb7c8ce4b489e /lib/libcurses/lib_clrbot.c
parentlibform from ncurses 4.1. Post 4.1 patches to be applied in a separate commit. (diff)
downloadwireguard-openbsd-010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b.tar.xz
wireguard-openbsd-010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b.zip
ncurses 4.1 + changes to work with our terminfo libs (instead of
the ncurses ones). Changes are #ifdef EXTERN_TERMINFO. Post 4.1 patches will be applied in a separate commit.
Diffstat (limited to 'lib/libcurses/lib_clrbot.c')
-rw-r--r--lib/libcurses/lib_clrbot.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcurses/lib_clrbot.c b/lib/libcurses/lib_clrbot.c
index f7feca7ec5d..9580df1a904 100644
--- a/lib/libcurses/lib_clrbot.c
+++ b/lib/libcurses/lib_clrbot.c
@@ -26,18 +26,18 @@
**
*/
-#include "curses.priv.h"
+#include <curses.priv.h>
+
+MODULE_ID("Id: lib_clrbot.c,v 1.9 1997/02/01 23:18:18 tom Exp $")
int wclrtobot(WINDOW *win)
{
chtype *ptr, *end, *maxx = NULL;
short y, startx, minx;
- T(("wclrtobot(%p) called", win));
+ T((T_CALLED("wclrtobot(%p)"), win));
startx = win->_curx;
- if (win->_flags & _NEED_WRAP)
- startx++;
T(("clearing from y = %d to y = %d with maxx = %d", win->_cury, win->_maxy, win->_maxx));
@@ -46,7 +46,7 @@ short y, startx, minx;
end = &win->_line[y].text[win->_maxx];
for (ptr = &win->_line[y].text[startx]; ptr <= end; ptr++) {
- int blank = _nc_render(win, *ptr, BLANK);
+ chtype blank = _nc_background(win);
if (*ptr != blank) {
maxx = ptr;
@@ -68,5 +68,5 @@ short y, startx, minx;
startx = 0;
}
_nc_synchook(win);
- return OK;
+ returnCode(OK);
}