diff options
| author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-10-05 01:33:25 -0400 |
|---|---|---|
| committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-10-05 01:33:25 -0400 |
| commit | 753bdc89883fa43ff68ac89880aa06d5b9e7251f (patch) | |
| tree | 4a1f500f2bb19460515401fdf3d6ef056410ece9 /src | |
| parent | 5d4274cacfd5304314b484a46475d3df53bdfb6d (diff) | |
| download | lynx-snapshots-753bdc89883fa43ff68ac89880aa06d5b9e7251f.tar.gz | |
snapshot of project "lynx", label v2-8-1pre_8
Diffstat (limited to 'src')
| -rw-r--r-- | src/LYCurses.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c index cea1ae42..57d8c753 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -873,12 +873,20 @@ PUBLIC void lynx_enable_mouse ARGS1(int,state) #else #ifdef NCURSES_MOUSE_VERSION +#if defined(__BORLANDC__) && defined(__PDCURSES__) + if (state) + { + SetConsoleMode(hConIn, ENABLE_MOUSE_INPUT | ENABLE_WINDOW_INPUT); + FlushConsoleInputBuffer(hConIn); + } +#else /* Inform ncurses that we're interested in knowing when mouse * button 1 is clicked */ if (state) mousemask(BUTTON1_CLICKED | BUTTON3_CLICKED, NULL); else mousemask(0, NULL); +#endif /* __BORLANDC__ and __PDCURSES__ */ #endif /* NCURSES_MOUSE_VERSION */ #if defined(DJGPP) && !defined(USE_SLANG) |