summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/lib_clrbot.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-30 07:58:08 +0000
committerpeter <peter@FreeBSD.org>1999-08-30 07:58:08 +0000
commit28ca28a57902fe74c7807cc9093f3f2e7d00596f (patch)
treeecd9ae622bca58b6c004f851252e529c5b7757af /lib/libncurses/lib_clrbot.c
parent216936ca6d54e77a70cdfe5305d1ba3ac2412fad (diff)
downloadFreeBSD-src-28ca28a57902fe74c7807cc9093f3f2e7d00596f.zip
FreeBSD-src-28ca28a57902fe74c7807cc9093f3f2e7d00596f.tar.gz
Use src/contrib/ncurses, v5.0.990821 prerelease.
This isn't quite finished yet, there are still some unresolved problems with ospeed and the sgtty.h (non-posix) terminal interface. Mostly this only causes problems with src/games. The other tools and libraries (libform,libpanel,libmenu) will come shortly but are seperate. Beware, there be dragons here! (The build will be broken for a short while)
Diffstat (limited to 'lib/libncurses/lib_clrbot.c')
-rw-r--r--lib/libncurses/lib_clrbot.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/libncurses/lib_clrbot.c b/lib/libncurses/lib_clrbot.c
deleted file mode 100644
index e803920..0000000
--- a/lib/libncurses/lib_clrbot.c
+++ /dev/null
@@ -1,53 +0,0 @@
-
-/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
-* details. If they are missing then this copy is in violation of *
-* the copyright conditions. */
-
-/*
-** lib_clrbot.c
-**
-** The routine wclrtobot().
-**
-*/
-
-#include "curses.priv.h"
-
-int wclrtobot(WINDOW *win)
-{
-chtype *ptr, *end, *maxx = NULL;
-int y, startx, minx;
-
- T(("wclrtobot(%x) called", win));
-
- startx = win->_curx;
-
- T(("clearing from y = %d to y = %d with maxx = %d", win->_cury, win->_maxy, win->_maxx));
-
- for (y = win->_cury; y <= win->_maxy; y++) {
- minx = _NOCHANGE;
- end = &win->_line[y][win->_maxx];
-
- for (ptr = &win->_line[y][startx]; ptr <= end; ptr++) {
- chtype blank = _nc_background(win);
-
- if (*ptr != blank) {
- maxx = ptr;
- if (minx == _NOCHANGE)
- minx = ptr - win->_line[y];
- *ptr = blank;
- }
- }
-
- if (minx != _NOCHANGE) {
- if (win->_firstchar[y] > minx
- || win->_firstchar[y] == _NOCHANGE)
- win->_firstchar[y] = minx;
-
- if (win->_lastchar[y] < maxx - win->_line[y])
- win->_lastchar[y] = maxx - win->_line[y];
- }
-
- startx = 0;
- }
- return OK;
-}
OpenPOWER on IntegriCloud