diff options
author | peter <peter@FreeBSD.org> | 1999-08-30 07:58:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-08-30 07:58:08 +0000 |
commit | 28ca28a57902fe74c7807cc9093f3f2e7d00596f (patch) | |
tree | ecd9ae622bca58b6c004f851252e529c5b7757af /lib/libncurses/lib_touch.c | |
parent | 216936ca6d54e77a70cdfe5305d1ba3ac2412fad (diff) | |
download | FreeBSD-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_touch.c')
-rw-r--r-- | lib/libncurses/lib_touch.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/libncurses/lib_touch.c b/lib/libncurses/lib_touch.c deleted file mode 100644 index 4d291b3..0000000 --- a/lib/libncurses/lib_touch.c +++ /dev/null @@ -1,48 +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_touch.c -** -** The routines untouchwin(), -** wtouchln(), -** is_linetouched() -** is_wintouched(). -** -*/ - -#include "curses.priv.h" - -int is_linetouched(WINDOW *win, int line) -{ - if (line > win->_maxy || line < 0) - return ERR; - if (win->_firstchar[line] != _NOCHANGE) return TRUE; - return FALSE; -} - -int is_wintouched(WINDOW *win) -{ -int i; - - for (i = 0; i <= win->_maxy; i++) - if (win->_firstchar[i] != _NOCHANGE) - return TRUE; - return FALSE; -} - -int wtouchln(WINDOW *win, int y, int n, int changed) -{ -int i; - - T(("wtouchln(%x,%d,%d,%d)", win, y, n, changed)); - - for (i = y; i < y+n; i++) { - win->_firstchar[i] = changed ? 0 : _NOCHANGE; - win->_lastchar[i] = changed ? win->_maxx : _NOCHANGE; - } - return OK; -} - |