Re: [PATCHv3 1/2] Initial TUI mouse support

Hannes Domani via Gdb-patches
2021-06-04T14:22:43Z

Am Freitag, 4. Juni 2021, 15:51:27 MESZ hat Tom Tromey <tom@tromey.com> Folgendes geschrieben:

> >>>>> "Hannes" == Hannes Domani via Gdb-patches <gdb-patches@sourceware.org> writes:
>
> Hannes> Implements an overridable tui_win_info::click method whose arguments
> Hannes> are the mouse coordinates inside the specific window, and the mouse
> Hannes> button clicked.
>
> Hannes> And if the curses implementation supports 5 buttons, the 4th and 5th
> Hannes> buttons are used for scrolling.
>
> Hannes> 2021-06-03  Hannes Domani  <ssbssa@yahoo.de>
>
> Hannes>     * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
> Hannes>     * tui/tui-data.h (struct tui_win_info): Add click function.
> Hannes>     * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
> Hannes>     (tui_deprep_terminal): Disable mouse events.
> Hannes>     (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
> Hannes>     * tui/tui.c (tui_disable): Disable mouse events.
>
> Looks good.  Thank you again.

Pushed both, thanks.

Hannes