# LibTmux.paste_text

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/pane_io.jl#L297
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-paste_text/

```
paste_text(
    connection::LibTmux.ControlConnection,
    pane::LibTmux.PaneRef,
    text::AbstractString;
    kwargs...
)

paste_text(
    server::LibTmux.Server,
    pane::LibTmux.PaneRef,
    text::AbstractString;
    kwargs...
)
```

## Methods

### `paste_text` (overload 1)

```julia
paste_text(
    connection::LibTmux.ControlConnection,
    pane::LibTmux.PaneRef,
    text::AbstractString;
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/control_buffers.jl#L198).

Paste valid UTF-8 over the pinned connection, retaining the owned-buffer contract.

### `paste_text` (overload 2)

```julia
paste_text(
    server::LibTmux.Server,
    pane::LibTmux.PaneRef,
    text::AbstractString;
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/pane_io.jl#L298).

Paste valid UTF-8 text through an owned buffer without adding Enter.

## Parameters

- `connection` (`LibTmux.ControlConnection`) (for `paste_text(connection, pane, text, kwargs)`)
- `pane` (`LibTmux.PaneRef`)
- `text` (`AbstractString`)
- `kwargs`
- `server` (`LibTmux.Server`) (for `paste_text(server, pane, text, kwargs)`)
