Initial TUI mouse support
authorHannes Domani <ssbssa@yahoo.de>
Sun, 20 Dec 2020 15:45:57 +0000 (16:45 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Fri, 4 Jun 2021 14:15:01 +0000 (16:15 +0200)
commit1bace02a96a7124accf7910f271663b0b7e8754b
tree754add41ed47ed999e37ff986811e7da33b8f2bc
parent25e821a6c2db1f7fea8a50ff0deeb34af2e72aa3
Initial TUI mouse support

Implements an overridable tui_win_info::click method whose arguments
are the mouse coordinates inside the specific window, and the mouse
button clicked.

And if the curses implementation supports 5 buttons, the 4th and 5th
buttons are used for scrolling.

gdb/ChangeLog:

2021-06-04  Hannes Domani  <ssbssa@yahoo.de>

* ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
* tui/tui-data.h (struct tui_win_info): Add click function.
* tui/tui-io.c (tui_prep_terminal): Enable mouse events.
(tui_deprep_terminal): Disable mouse events.
(tui_dispatch_ctrl_char): Handle KEY_MOUSE.
* tui/tui.c (tui_disable): Disable mouse events.
gdb/ChangeLog
gdb/ser-mingw.c
gdb/tui/tui-data.h
gdb/tui/tui-io.c
gdb/tui/tui.c