Menu

#12 mouse compatibility with pdcurses

closed-accepted
None
2015-05-12
2015-05-08
No

ncurses uses a mouse API that is slightly different from the legacy sys-V curses API, which means it won't work with other curses implementations.

I needed it to work with pdcurses, and pdcurses happen to provide a ncurses-compatible API, but under a different name (nc_getmouse), while their getmouse() is a sys-V compatible one.

Here is a patch that makes the mouse work both with ncurses and pdcurses (and maybe other curses, too, who knows).

1 Attachments

Discussion

  • Mateusz Viste

    Mateusz Viste - 2015-05-12
    • status: open --> closed-accepted
    • assigned_to: Mateusz Viste
     
  • Mateusz Viste

    Mateusz Viste - 2015-05-12

    done

     

Log in to post a comment.