summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/c++/cursesw.cc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-07-03 09:24:12 +0000
committerpeter <peter@FreeBSD.org>2000-07-03 09:24:12 +0000
commitcc6a5cc05f3c2cde24338d35c9714f1e7ebf032e (patch)
tree27e79485df3c9195e6fe58960df47f675f41f1e9 /contrib/ncurses/c++/cursesw.cc
parentb22d00e9129b5cb2fee8da1592ca70eff2222f7e (diff)
downloadFreeBSD-src-cc6a5cc05f3c2cde24338d35c9714f1e7ebf032e.zip
FreeBSD-src-cc6a5cc05f3c2cde24338d35c9714f1e7ebf032e.tar.gz
Import the most recent ncurses 5.1 prerelease (20000701).
Mostly this is intended to resolve the trace() badness once and for all. Obtained from: ftp://dickey.his.com/ncurses/
Diffstat (limited to 'contrib/ncurses/c++/cursesw.cc')
-rw-r--r--contrib/ncurses/c++/cursesw.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/ncurses/c++/cursesw.cc b/contrib/ncurses/c++/cursesw.cc
index 4072c3c..baae046 100644
--- a/contrib/ncurses/c++/cursesw.cc
+++ b/contrib/ncurses/c++/cursesw.cc
@@ -25,7 +25,7 @@
#include "cursesw.h"
#include "internal.h"
-MODULE_ID("$Id: cursesw.cc,v 1.15 1999/09/11 23:26:29 tom Exp $")
+MODULE_ID("$Id: cursesw.cc,v 1.16 1999/11/13 23:42:17 tom Exp $")
#define COLORS_NEED_INITIALIZATION -1
#define COLORS_NOT_INITIALIZED 0
@@ -424,9 +424,11 @@ NCursesWindow::setcolor(short pair)
return OK;
}
+#ifdef HAVE_HAS_KEY
extern "C" int _nc_has_mouse(void);
bool NCursesWindow::has_mouse() const {
return ((::has_key(KEY_MOUSE) || ::_nc_has_mouse())
? TRUE : FALSE);
}
+#endif
OpenPOWER on IntegriCloud