# `Raxol.Core.Buffer`
[🔗](https://github.com/DROOdotFOO/raxol/blob/v2.8.0/lib/raxol/core/buffer.ex#L1)

Compatibility layer for legacy Raxol.Core.Buffer references.

This module exists to maintain backwards compatibility with plugins
that reference the old apps/raxol_core modules.

Maps to Raxol.Terminal.Buffer operations where possible.

# `cell`

```elixir
@type cell() :: %{char: String.t(), style: map()}
```

# `line`

```elixir
@type line() :: %{cells: [cell()]}
```

# `t`

```elixir
@type t() :: %{
  width: non_neg_integer(),
  height: non_neg_integer(),
  lines: [line()],
  cells: list()
}
```

# `clear`

Clear buffer, resetting all cells to blank

# `create_blank_buffer`

Create blank buffer with lines structure for TerminalBridge compatibility

# `get_cell`

Get cell at coordinates

# `resize`

Resize buffer to new dimensions

# `set_cell`

Set cell at coordinates

# `to_string`

Convert buffer to string

# `write_at`

Write text at coordinates

# `write_at`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
