summaryrefslogtreecommitdiffstats
path: root/CRT.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-08-19 18:55:24 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-08-19 18:55:24 -0300
commitb003636958377ecad3ee5df4ca2de8717c4530b9 (patch)
tree187106d1eae07e5f1dfd8dfb3a63d288863f3e8a /CRT.h
parent3e93f9b85243e1edf1d3b73658fdf3f8a5b13032 (diff)
Support for NCurses 6.0 and mouse wheel
Diffstat (limited to 'CRT.h')
-rw-r--r--CRT.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/CRT.h b/CRT.h
index 3e8babe7..69497d76 100644
--- a/CRT.h
+++ b/CRT.h
@@ -20,6 +20,9 @@ in the source distribution for its full text.
#define Cyan COLOR_CYAN
#define White COLOR_WHITE
+#define KEY_WHEELUP KEY_F(20)
+#define KEY_WHEELDOWN KEY_F(21)
+
//#link curses
#include <stdbool.h>
@@ -130,6 +133,8 @@ extern int CRT_cursorX;
extern int CRT_scrollHAmount;
+extern int CRT_scrollWheelVAmount;
+
char* CRT_termType;
// TODO move color scheme to Settings, perhaps?

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