# grid_get_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L181
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid_get_line/

```c
struct grid_line * grid_get_line(struct grid *gd, u_int line)
```

## Parameters

- `gd` (`struct grid *`)
- `line` (`u_int`)

## Called by

- [`format_cb_history_all_bytes`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_history_all_bytes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L884)
- [`format_cb_history_bytes`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_history_bytes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L858)
- [`grid_line_length`](/en/tmux/3.2a/reference/c-function-grid_line_length/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1419)
- [`grid_reader_cursor_next_word`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_next_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L200)
- [`grid_reader_cursor_next_word_end`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_next_word_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L244)
- [`screen_write_backspace`](/en/tmux/3.2a/reference/c-function-screen_write_backspace/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L890)
- [`screen_write_cell`](/en/tmux/3.2a/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1778)
- [`screen_write_clearendofline`](/en/tmux/3.2a/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1144)
- [`screen_write_clearline`](/en/tmux/3.2a/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1115)
- [`screen_write_linefeed`](/en/tmux/3.2a/reference/c-function-screen_write_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1266)
- [`tty_draw_line`](/en/tmux/3.2a/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1317)
- [`window_copy_cmd_next_matching_bracket`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_next_matching_bracket/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1447)
- [`window_copy_cmd_select_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_select_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1805)
- [`window_copy_copy_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4194)
- [`window_copy_search_lr`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_lr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2528)
- [`window_copy_search_lr_regex`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_lr_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2616)
- [`window_copy_search_rl`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_rl/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2565)
- [`window_copy_search_rl_regex`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_rl_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2673)

## Referenced by

- [`grid_reader_cursor_back_to_indentation`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_back_to_indentation/) (function)
- [`grid_reader_cursor_end_of_line`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_end_of_line/) (function)
- [`grid_reader_cursor_jump`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_jump/) (function)
- [`grid_reader_cursor_jump_back`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_jump_back/) (function)
- [`grid_reader_cursor_left`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_left/) (function)
- [`grid_reader_cursor_previous_word`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_previous_word/) (function)
- [`grid_reader_cursor_start_of_line`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_start_of_line/) (function)
- [`grid_view_clear_history`](/en/tmux/3.2a/reference/c-function-grid_view_clear_history/) (function)
- [`screen_write_fast_copy`](/en/tmux/3.2a/reference/c-function-screen_write_fast_copy/) (function)
- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)
- [`window_copy_get_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_get_selection/) (function)
- [`window_copy_search_back_overlap`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_back_overlap/) (function)

## Referenced declarations

- [`grid`](/en/tmux/3.2a/reference/c-struct-grid/) (struct)
- [`grid_line`](/en/tmux/3.2a/reference/c-struct-grid_line/) (struct)
- [`grid.linedata`](/en/tmux/3.2a/reference/c-struct-grid-linedata/) (attribute)
