# tty_margin

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

```c
static void tty_margin(struct tty *, u_int, u_int)
```

## Parameters

- `tty` (`struct tty *`)
- `rleft` (`u_int`)
- `rright` (`u_int`)

## Called by

- [`tty_clear_area`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clear_area/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1198)
- [`tty_margin_off`](/en/tmux/3.2a/reference/c-function-tty_margin_off/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2050)
- [`tty_margin_pane`](/en/tmux/3.2a/reference/c-function-tty-c-tty_margin_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2057)

## Calls

- [`tty_putcode`](/en/tmux/3.2a/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2076)
- [`tty_putcode2`](/en/tmux/3.2a/reference/c-function-tty_putcode2/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2070)

## Referenced declarations

- [`tty.cx`](/en/tmux/3.2a/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/3.2a/reference/c-struct-tty-cy/) (attribute)
- [`tty.rleft`](/en/tmux/3.2a/reference/c-struct-tty-rleft/) (attribute)
- [`tty.rlower`](/en/tmux/3.2a/reference/c-struct-tty-rlower/) (attribute)
- [`tty.rright`](/en/tmux/3.2a/reference/c-struct-tty-rright/) (attribute)
- [`tty.rupper`](/en/tmux/3.2a/reference/c-struct-tty-rupper/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_use_margin`](/en/tmux/3.2a/reference/c-define-tty-c-tty_use_margin/) (constant)
- [`TTYC_CLMG`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_clmg/) (constant)
- [`TTYC_CMG`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cmg/) (constant)
- [`TTYC_CSR`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_csr/) (constant)
