Commit afed5c0
committed
ncurses-style getmouse() (a.k.a. nc_getmouse()) fix to return an event once.
In ncurses, getmouse() delivers events from a queue, returning OK if
there was an event on the queue, ERR if not. PDCursesMod (and PDCurses)
return OK. (Reported by Robin Haberkorn as issue #357.)
This patch causes getmouse() to deliver events from a queue of one
event. ncurses queues up to eight events, and I hope to do something
similar eventually. But this at least fixes the immediate problem,
and may be part of the eventual solution.1 parent d0f0324 commit afed5c0
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| |||
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
344 | | - | |
| 346 | + | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
| 352 | + | |
350 | 353 | | |
351 | 354 | | |
352 | 355 | | |
| |||
0 commit comments