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 <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
// this points to nothing, so redefine it
|
#ifdef USE_PDCURSES
|
||||||
#undef KEY_BACKSPACE
|
# undef KEY_BACKSPACE
|
||||||
#define KEY_BACKSPACE 8
|
# define KEY_BACKSPACE 8
|
||||||
|
#endif // USE_PDCURSES
|
||||||
|
|
||||||
#ifdef _UTF8
|
#ifdef _UTF8
|
||||||
# define my_char_t wchar_t
|
# define my_char_t wchar_t
|
||||||
|
|||||||
Reference in New Issue
Block a user