diff --git a/sys/unix/hints/include/cross-pre.370 b/sys/unix/hints/include/cross-pre.370 index 653447832..104b05951 100644 --- a/sys/unix/hints/include/cross-pre.370 +++ b/sys/unix/hints/include/cross-pre.370 @@ -74,17 +74,17 @@ ifdef BUILD_PDCURSES # PD Curses library #===============-================================================= ifdef WANT_WIN_CURSES -ifdef WANT_DOSVGA PDCTOP = ../lib/pdcursesmod +ifdef WANT_DOSVGA PDCPORT = $(PDCTOP)/dosvga PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \ -D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \ -D"PDC_WIDE" -D"CURSES_UNICODE" else -PDCTOP = ../lib/pdcurses PDCPORT = $(PDCTOP)/dos PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \ - -D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" + -D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \ + -D"PDC_WIDE" endif # WANT_DOSVGA PDCLIBOBJ1= $(TARGETPFX)addch.o $(TARGETPFX)addchstr.o \ $(TARGETPFX)addstr.o $(TARGETPFX)attr.o \ diff --git a/win/curses/cursmisc.c b/win/curses/cursmisc.c index 2ee464fe1..3f724f83b 100644 --- a/win/curses/cursmisc.c +++ b/win/curses/cursmisc.c @@ -857,7 +857,7 @@ int curses_convert_keys(int key) { boolean reject = (gp.program_state.input_state == otherInp), - as_is = FALSE, numpad_esc; + as_is = FALSE, numpad_esc = FALSE; int ret = key; if (modifiers_available) @@ -1106,6 +1106,7 @@ parse_escape_sequence(boolean *keypadnum) return ret; #else + nhUse(keypadnum); return '\033'; #endif /* !PDCURSES */ }