4

I would like to capture input/output from pane/session file.

just like ^A+L in minicom

I tried ^b+: capture-pane in tmux. but nothing work.

Thanks

Robber Pen
  • 1,033
  • 2
  • 12
  • 24

2 Answers2

6

Use pipe-pane. C-b : pipe-pane "cat >myfile"

Nicholas Marriott
  • 3,148
  • 9
  • 12
2

You can pipe the current pane content to stdout with tmux capture-pane -p -S - and do whatever you want with a usual stdout pipe, e.g. pipe it to a vim buffer with tmux capture-pane -p -S - | vim -

Rufus
  • 5,111
  • 4
  • 28
  • 45