libpayload: Don't declare mouse support in tinycurses
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>
This commit is contained in:
parent
c3c827cf86
commit
559290836b
|
@ -286,7 +286,9 @@ int endwin(void)
|
||||||
return ERR;
|
return ERR;
|
||||||
|
|
||||||
SP->_endwin = TRUE;
|
SP->_endwin = TRUE;
|
||||||
|
#ifdef NCURSES_MOUSE_VERSION
|
||||||
SP->_mouse_wrap(SP);
|
SP->_mouse_wrap(SP);
|
||||||
|
#endif
|
||||||
// _nc_screen_wrap();
|
// _nc_screen_wrap();
|
||||||
// _nc_mvcur_wrap(); /* wrap up cursor addressing */
|
// _nc_mvcur_wrap(); /* wrap up cursor addressing */
|
||||||
// return reset_shell_mode();
|
// return reset_shell_mode();
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
/*
|
/*
|
||||||
* 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.
|
||||||
|
@ -1495,6 +1495,7 @@ extern NCURSES_EXPORT(const char *) _nc_viswibuf(const wint_t *);
|
||||||
|
|
||||||
/* mouse interface */
|
/* mouse interface */
|
||||||
|
|
||||||
|
#ifdef NCURSES_MOUSE_VERSION
|
||||||
#if NCURSES_MOUSE_VERSION > 1
|
#if NCURSES_MOUSE_VERSION > 1
|
||||||
#define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5))
|
#define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5))
|
||||||
#else
|
#else
|
||||||
|
@ -1591,6 +1592,7 @@ extern NCURSES_EXPORT(bool) wmouse_trafo (const WINDOW*, int*, int*, bool);
|
||||||
extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */
|
extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */
|
||||||
|
|
||||||
#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
|
#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* other non-XSI functions */
|
/* other non-XSI functions */
|
||||||
|
|
||||||
|
@ -1616,7 +1618,9 @@ extern NCURSES_EXPORT(char *) _tracecchar_t2 (int, const cchar_t *);
|
||||||
#define _tracech_t _tracechtype
|
#define _tracech_t _tracechtype
|
||||||
#define _tracech_t2 _tracechtype2
|
#define _tracech_t2 _tracechtype2
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef NCURSES_MOUSE_VERSION
|
||||||
extern NCURSES_EXPORT(char *) _tracemouse (const MEVENT *);
|
extern NCURSES_EXPORT(char *) _tracemouse (const MEVENT *);
|
||||||
|
#endif
|
||||||
extern NCURSES_EXPORT(void) trace (const unsigned int);
|
extern NCURSES_EXPORT(void) trace (const unsigned int);
|
||||||
|
|
||||||
/* trace masks */
|
/* trace masks */
|
||||||
|
|
|
@ -514,6 +514,7 @@ struct screen {
|
||||||
#define _nc_idlok SP->_nc_sp_idlok
|
#define _nc_idlok SP->_nc_sp_idlok
|
||||||
#define _nc_idcok SP->_nc_sp_idcok
|
#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.
|
||||||
*/
|
*/
|
||||||
|
@ -531,6 +532,7 @@ struct screen {
|
||||||
NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */
|
NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */
|
||||||
MEVENT _mouse_events[EV_MAX]; /* hold the last mouse event seen */
|
MEVENT _mouse_events[EV_MAX]; /* hold the last mouse event seen */
|
||||||
MEVENT *_mouse_eventp; /* next free slot in event queue */
|
MEVENT *_mouse_eventp; /* next free slot in event queue */
|
||||||
|
#endif
|
||||||
|
|
||||||
#if USE_GPM_SUPPORT
|
#if USE_GPM_SUPPORT
|
||||||
bool _mouse_gpm_loaded;
|
bool _mouse_gpm_loaded;
|
||||||
|
|
Loading…
Reference in New Issue