# tty_term_read_list

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L690
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty_term_read_list/

```c
int tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps, char **cause)
```

## Parameters

- `name` (`const char *`)
- `fd` (`int`)
- `caps` (`char ***`)
- `ncaps` (`u_int *`)
- `cause` (`char **`)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L749)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L702)
- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L751)
- [`xsnprintf`](/en/tmux/latest/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L736)

## Other function references

- [`tty_term_ncodes`](/en/tmux/latest/reference/c-function-tty_term_ncodes/) (function)

## Referenced by

- [`client_main`](/en/tmux/latest/reference/c-function-client_main/) (function)

## Referenced declarations

- [`tty_term_code_entry.name`](/en/tmux/latest/reference/c-struct-tty_term_code_entry-name/) (attribute)
- [`tty_term_codes`](/en/tmux/latest/reference/c-variable-tty-term-c-tty_term_codes/) (attribute)
- [`TTYCODE_FLAG`](/en/tmux/latest/reference/c-enum-tty_code_type-ttycode_flag/) (constant)
- [`TTYCODE_NONE`](/en/tmux/latest/reference/c-enum-tty_code_type-ttycode_none/) (constant)
- [`TTYCODE_NUMBER`](/en/tmux/latest/reference/c-enum-tty_code_type-ttycode_number/) (constant)
- [`TTYCODE_STRING`](/en/tmux/latest/reference/c-enum-tty_code_type-ttycode_string/) (constant)
- [`tty_term_code_entry.type`](/en/tmux/latest/reference/c-struct-tty_term_code_entry-type/) (attribute)
