Change-Id: Id1ff3d85617e3ec063ce332cf13920dfbbb7cf26
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/87
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
return ERR;
SP->_endwin = TRUE;
return ERR;
SP->_endwin = TRUE;
+#ifdef NCURSES_MOUSE_VERSION
// _nc_screen_wrap();
// _nc_mvcur_wrap(); /* wrap up cursor addressing */
// return reset_shell_mode();
// _nc_screen_wrap();
// _nc_mvcur_wrap(); /* wrap up cursor addressing */
// return reset_shell_mode();
/*
* Identify the mouse encoding version.
*/
/*
* Identify the mouse encoding version.
*/
-#define NCURSES_MOUSE_VERSION 1
+// #define NCURSES_MOUSE_VERSION 1
/*
* Definitions to facilitate DLL's.
/*
* Definitions to facilitate DLL's.
+#ifdef NCURSES_MOUSE_VERSION
#if NCURSES_MOUSE_VERSION > 1
#define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5))
#else
#if NCURSES_MOUSE_VERSION > 1
#define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5))
#else
extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */
#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */
#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
/* other non-XSI functions */
/* other non-XSI functions */
#define _tracech_t _tracechtype
#define _tracech_t2 _tracechtype2
#endif
#define _tracech_t _tracechtype
#define _tracech_t2 _tracechtype2
#endif
+#ifdef NCURSES_MOUSE_VERSION
extern NCURSES_EXPORT(char *) _tracemouse (const MEVENT *);
extern NCURSES_EXPORT(char *) _tracemouse (const MEVENT *);
extern NCURSES_EXPORT(void) trace (const unsigned int);
/* trace masks */
extern NCURSES_EXPORT(void) trace (const unsigned int);
/* trace masks */
#define _nc_idlok SP->_nc_sp_idlok
#define _nc_idcok SP->_nc_sp_idcok
#define _nc_idlok SP->_nc_sp_idlok
#define _nc_idcok SP->_nc_sp_idcok
+#ifdef NCURSES_MOUSE_VERSION
/*
* These are the data that support the mouse interface.
*/
/*
* These are the data that support the mouse interface.
*/
NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */
MEVENT _mouse_events[EV_MAX]; /* hold the last mouse event seen */
MEVENT *_mouse_eventp; /* next free slot in event queue */
NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */
MEVENT _mouse_events[EV_MAX]; /* hold the last mouse event seen */
MEVENT *_mouse_eventp; /* next free slot in event queue */
#if USE_GPM_SUPPORT
bool _mouse_gpm_loaded;
#if USE_GPM_SUPPORT
bool _mouse_gpm_loaded;