Support for NCurses 6.0 and mouse wheel

This commit is contained in:
Hisham Muhammad
2015-08-19 18:55:24 -03:00
parent 3e93f9b852
commit b003636958
5 changed files with 61 additions and 20 deletions

5
CRT.h
View File

@ -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?