# LibTmux.pipe_pane

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/topology.jl#L454
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-pipe_pane/

```
pipe_pane(
    transport,
    pane::LibTmux.PaneRef,
    shell_command::Union{Nothing, AbstractString};
    input,
    output,
    replace,
    expand_formats,
    kwargs...,
)

pipe_pane(transport, pane::LibTmux.PaneRef; ...)
```

## Methods

### `pipe_pane` (overload 1)

```julia
pipe_pane(
    transport,
    pane::LibTmux.PaneRef,
    shell_command::Union{Nothing, AbstractString};
    input,
    output,
    replace,
    expand_formats,
    kwargs...,
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/topology.jl#L468).

Connect a shell command to future pane output, or use `input=true` to feed its stdout into the pane. tmux owns the pipe process; command completion does not prove its exit. The caller closes a pipe by explicitly passing `nothing`. Existing pipes are protected by a best-effort check unless `replace=true`; replacement can close the old pipe before a new one fails.

```julia
pipe_pane(transport, pane::PaneRef, shell_command=nothing;
          input=false, output=true, replace=false, expand_formats=false, kwargs...)
```



Shell syntax executes on the tmux host. Formats and strftime sequences remain literal unless `expand_formats=true`. No finalizer closes a borrowed pipe and no failure rolls back input already delivered.

### `pipe_pane(transport, pane::LibTmux.PaneRef; ...)`

[Source](https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/topology.jl#L468).

Connect a shell command to future pane output, or use `input=true` to feed its stdout into the pane. tmux owns the pipe process; command completion does not prove its exit. The caller closes a pipe by explicitly passing `nothing`. Existing pipes are protected by a best-effort check unless `replace=true`; replacement can close the old pipe before a new one fails.

```julia
pipe_pane(transport, pane::PaneRef, shell_command=nothing;
          input=false, output=true, replace=false, expand_formats=false, kwargs...)
```



Shell syntax executes on the tmux host. Formats and strftime sequences remain literal unless `expand_formats=true`. No finalizer closes a borrowed pipe and no failure rolls back input already delivered.

## Parameters

- `transport` (`Any`)
- `pane` (`LibTmux.PaneRef`)
- `shell_command` (`Union{Nothing, AbstractString}`) (for `pipe_pane(transport, pane, shell_command, input, output, replace, expand_formats, kwargs)`)
  Default: `nothing`.
- `input` (`Bool`) (for `pipe_pane(transport, pane, shell_command, input, output, replace, expand_formats, kwargs)`)
  Default: `false`.
- `output` (`Bool`) (for `pipe_pane(transport, pane, shell_command, input, output, replace, expand_formats, kwargs)`)
  Default: `true`.
- `replace` (`Bool`) (for `pipe_pane(transport, pane, shell_command, input, output, replace, expand_formats, kwargs)`)
  Default: `false`.
- `expand_formats` (`Bool`) (for `pipe_pane(transport, pane, shell_command, input, output, replace, expand_formats, kwargs)`)
  Default: `false`.
- `kwargs` (for `pipe_pane(transport, pane, shell_command, input, output, replace, expand_formats, kwargs)`)
- `argument3` (for `pipe_pane(transport, pane, argument3)`)

## Guides

Pages that discuss `pipe_pane`.

- [Ownership and I/O](/en/julia/latest/topics/ownership/)
