# tmux_pane:stop_pipe/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_pane.erl#L188
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_pane-stop_pipe-1/

```
stop_pipe(Pane)
-spec stop_pipe(tmux_model:pane()) ->
                   {ok, map()} | {error, map()}.
```

Close this registered pane's native pipe, performing I/O. On a live pane, closing an already closed pipe succeeds. An exited pane can produce a native command error; a vanished ID returns `target_gone`.

Closing can discard pending bytes. It neither kills nor waits for an arbitrary
shell job started by `pipe/3`; applications must verify consumption and
process completion themselves. The endpoint does not own that shell process.

## Parameters

- `Pane` (`tmux_model:pane()`)

## tmux command

The tmux commands behind `stop_pipe/1`.

- [`pipe-pane`](/en/tmux/latest/manual/pipe-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_pipe_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_pipe_pane_entry/) (attribute)
- [`cmd_pipe_pane_exec`](/en/tmux/latest/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function)

## Guides

Pages that discuss `stop_pipe/1`.

- [Native API documentation](/en/erlang/latest/guides/api-documentation/)
- [Pipe pane output](/en/erlang/latest/guides/piping/)
