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:
Andrzej Rybczak
2009-03-27 17:35:50 +01:00
parent 7c205e70eb
commit c4849bf129

View File

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