# tty_keys_mouse

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L993
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_mouse/

```c
static int tty_keys_mouse(struct tty *, const char *, size_t, size_t *, struct mouse_event *)
```

## Parameters

- `tty` (`struct tty *`)
- `buf` (`const char *`)
- `len` (`size_t`)
- `size` (`size_t *`)
- `m` (`struct mouse_event *`)

## Called by

- [`tty_keys_next`](/en/tmux/3.2a/reference/c-function-tty_keys_next/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L703)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L1045)

## Referenced declarations

- [`mouse_event.b`](/en/tmux/3.2a/reference/c-struct-mouse_event-b/) (attribute)
- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`mouse_event.lb`](/en/tmux/3.2a/reference/c-struct-mouse_event-lb/) (attribute)
- [`mouse_event.lx`](/en/tmux/3.2a/reference/c-struct-mouse_event-lx/) (attribute)
- [`mouse_event.ly`](/en/tmux/3.2a/reference/c-struct-mouse_event-ly/) (attribute)
- [`mouse_event`](/en/tmux/3.2a/reference/c-struct-mouse_event/) (struct)
- [`tty.mouse_last_b`](/en/tmux/3.2a/reference/c-struct-tty-mouse_last_b/) (attribute)
- [`tty.mouse_last_x`](/en/tmux/3.2a/reference/c-struct-tty-mouse_last_x/) (attribute)
- [`tty.mouse_last_y`](/en/tmux/3.2a/reference/c-struct-tty-mouse_last_y/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`mouse_event.sgr_b`](/en/tmux/3.2a/reference/c-struct-mouse_event-sgr_b/) (attribute)
- [`mouse_event.sgr_type`](/en/tmux/3.2a/reference/c-struct-mouse_event-sgr_type/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`mouse_event.x`](/en/tmux/3.2a/reference/c-struct-mouse_event-x/) (attribute)
- [`mouse_event.y`](/en/tmux/3.2a/reference/c-struct-mouse_event-y/) (attribute)
