redefine KEY_BACKSPACE only if pdcurses is used
this is redundant in ncurses and causes display bug while pressing backspace in some terminals.
This commit is contained in:
@@ -31,9 +31,10 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
// this points to nothing, so redefine it
|
||||
#undef KEY_BACKSPACE
|
||||
#define KEY_BACKSPACE 8
|
||||
#ifdef USE_PDCURSES
|
||||
# undef KEY_BACKSPACE
|
||||
# define KEY_BACKSPACE 8
|
||||
#endif // USE_PDCURSES
|
||||
|
||||
#ifdef _UTF8
|
||||
# define my_char_t wchar_t
|
||||
|
||||
Reference in New Issue
Block a user