Skip to content

nc_getmouse() does not queue events (ncurses incompatibility) #357

@rhaberkorn

Description

@rhaberkorn

In ncurses getmouse() actually delivers events from its own queue, so you should call it repeatedly for every KEY_MOUSE:

MEVENT event;
while (getmouse(&event) == OK)
    /* process event... */

If you do the same in PDCursesMod, your program will hang since it always returns OK and delivers the same mouse event repeatedly.

A workaround is obviously some #ifdef __PDCURSES__ magic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions