redefine KEY_BACKSPACE only if pdcurses is used

this is redundant in ncurses and causes display
bug while pressing backspace in some terminals.
master
Andrzej Rybczak 17 years ago
parent 7c205e70eb
commit c4849bf129
  1. 7
      src/window.h

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

Loading…
Cancel
Save