X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fwin32con%2Fwin_driver.c;h=1b38f6a4bc06666c67f7fd6ffaced464907508fd;hp=2a6ed00e068c6881357aad6489ea768c39e29e9e;hb=c55d387cebf1cee4757ca2c2ef4fbeae59ee4175;hpb=71244b7927a8918c0b09a8eb13b017ef0ebb6de8 diff --git a/ncurses/win32con/win_driver.c b/ncurses/win32con/win_driver.c index 2a6ed00e..1b38f6a4 100644 --- a/ncurses/win32con/win_driver.c +++ b/ncurses/win32con/win_driver.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. * + * Copyright (c) 1998-2018,2020 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,7 +40,7 @@ #include -#ifdef __MINGW32__ +#ifdef _WIN32 #include #else #include @@ -54,7 +54,7 @@ #define CUR TerminalType(my_term). -MODULE_ID("$Id: win_driver.c,v 1.59 2017/07/22 21:10:28 tom Exp $") +MODULE_ID("$Id: win_driver.c,v 1.62 2020/01/18 17:02:38 tom Exp $") #ifndef __GNUC__ # error We need GCC to compile for MinGW @@ -1316,7 +1316,9 @@ wcon_initmouse(TERMINAL_CONTROL_BLOCK * TCB) } static int -wcon_testmouse(TERMINAL_CONTROL_BLOCK * TCB, int delay) +wcon_testmouse(TERMINAL_CONTROL_BLOCK * TCB, + int delay + EVENTLIST_2nd(_nc_eventlist * evl)) { int rc = 0; SCREEN *sp; @@ -1528,6 +1530,10 @@ console_twait( int diff; bool isImmed = (milliseconds == 0); +#ifdef NCURSES_WGETCH_EVENTS + (void) evl; /* TODO: implement wgetch-events */ +#endif + #define CONSUME() ReadConsoleInput(fd,&inp_rec,1,&nRead) assert(sp); @@ -1635,7 +1641,7 @@ wcon_twait(TERMINAL_CONTROL_BLOCK * TCB, CON.inp, mode, milliseconds, - timeleft EVENTLIST_2nd(_nc_eventlist * evl)); + timeleft EVENTLIST_2nd(evl)); } return code; } @@ -1967,7 +1973,7 @@ _nc_mingw_isatty(int fd) /* This is used when running in terminfo mode to discover, whether or not the "terminal" is actually a Windows - Console. It's the responsibilty of the console to deal + Console. It's the responsibility of the console to deal with the terminal escape sequences that are sent by terminfo. */ @@ -2069,7 +2075,8 @@ int _nc_mingw_testmouse( SCREEN *sp, HANDLE fd, - int delay) + int delay + EVENTLIST_2nd(_nc_eventlist * evl)) { int rc = 0; @@ -2155,7 +2162,7 @@ _nc_mingw_console_read( static bool InitConsole(void) { - /* initalize once, or not at all */ + /* initialize once, or not at all */ if (!console_initialized) { int i; DWORD num_buttons;