Skip to contents

Pipe contents of a tmux pane to a shell command

Usage

pipe_pane(
  target = NULL,
  shell_command = NULL,
  stdout = TRUE,
  stdin = FALSE,
  open = FALSE
)

Arguments

target

A tmuxr_session, tmuxr_window, or tmuxr_pane.

shell_command

String. If NULL, the current pipe (if any) is closed. Default: NULL.

stdout

Logical. Connect standard output of pane to shell_command? Default: TRUE.

stdin

Logical. Connect standard input of pane to shell_command? Default: FALSE.

open

Logical. Only open a new pipe if no previous pipe exists. Default: FALSE.