summaryrefslogtreecommitdiffstats
path: root/InfoScreen.c
diff options
context:
space:
mode:
authornia <nia@NetBSD.org>2021-07-14 20:17:13 +0200
committerBenBE <BenBE@geshi.org>2021-07-15 19:09:08 +0200
commit2ab8fb83ba7d210c7c377b5b417f79822a6f7724 (patch)
treef83599c5be12b94271f16482316e8cfcba8ef9aa /InfoScreen.c
parentd45b4f4a4328ced5e291e6c309437599647c02e0 (diff)
netbsd: Support curses libraries without ncurses mouse support
This adds a configure check for the ncurses getmouse() function and disables mouse-related code paths when mouse support is not present in the curses library. This is necessary for stable versions of NetBSD's libcurses, the development version has stub mouse functions for compatibility with ncurses. Signed-off-by: Nia Alarie <nia@NetBSD.org>
Diffstat (limited to 'InfoScreen.c')
-rw-r--r--InfoScreen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/InfoScreen.c b/InfoScreen.c
index 259ecee3..a62b7c0d 100644
--- a/InfoScreen.c
+++ b/InfoScreen.c
@@ -106,6 +106,7 @@ void InfoScreen_run(InfoScreen* this) {
}
}
+#ifdef HAVE_GETMOUSE
if (ch == KEY_MOUSE) {
MEVENT mevent;
int ok = getmouse(&mevent);
@@ -127,6 +128,7 @@ void InfoScreen_run(InfoScreen* this) {
#endif
}
}
+#endif
if (this->inc->active) {
IncSet_handleKey(this->inc, ch, panel, IncSet_getListItemValue, this->lines);

© 2014-2024 Faster IT GmbH | imprint | privacy policy