# format_grid_hyperlink

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6109
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-format_grid_hyperlink/

```c
char * format_grid_hyperlink(struct grid *gd, u_int x, u_int y, struct screen *s)
```

## Parameters

- `gd` (`struct grid *`)
- `x` (`u_int`)
- `y` (`u_int`)
- `s` (`struct screen *`)

## Called by

- [`format_cb_mouse_hyperlink`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_hyperlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1276)
- [`window_copy_cursor_hyperlink_cb`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_hyperlink_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L934)
- [`window_copy_get_hyperlink`](/en/tmux/3.7c/reference/c-function-window_copy_get_hyperlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L923)

## Calls

- [`grid_get_cell`](/en/tmux/3.7c/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6115)
- [`hyperlinks_get`](/en/tmux/3.7c/reference/c-function-hyperlinks_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6124)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6126)

## Referenced declarations

- [`grid_cell.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`GRID_FLAG_PADDING`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`screen.hyperlinks`](/en/tmux/3.7c/reference/c-struct-screen-hyperlinks/) (attribute)
- [`grid_cell.link`](/en/tmux/3.7c/reference/c-struct-grid_cell-link/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
