Skip to content

Commit

Permalink
Merge pull request #4931 from charlesseizilles/dev
Browse files Browse the repository at this point in the history
update pdcurses to 3.9
  • Loading branch information
waruqi authored Apr 4, 2024
2 parents d8c1f61 + b74eb41 commit 282e468
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/pdcurses/pdcurses
Submodule pdcurses updated 173 files
5 changes: 4 additions & 1 deletion core/src/pdcurses/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ target("pdcurses")
add_includedirs("pdcurses", {public = true})

-- add the common source files
add_files("pdcurses/pdcurses/*.c", "pdcurses/win32/*.c")
add_files("pdcurses/pdcurses/*.c", "pdcurses/wincon/*.c")

-- add definitions
add_defines("PDC_WIDE")

-- set languages
set_languages("c89")

-- unset warnings
set_warnings("none")
2 changes: 2 additions & 0 deletions core/src/xmake/curses/curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// fix macro redefinition
# undef MOUSE_MOVED
#endif
#define NCURSES_MOUSE_VERSION 2
#include <curses.h>
#if defined(NCURSES_VERSION)
# include <locale.h>
Expand Down Expand Up @@ -131,6 +132,7 @@ static int xm_curses_window_getch_impl(WINDOW* w)
}

key = wgetch(w);
if (key == KEY_RESIZE) resize_term(0, 0);
if (key == ERR || !g_mapkey) return key;
if (key >= ALT_A && key <= ALT_Z)
{
Expand Down

0 comments on commit 282e468

Please sign in to comment.