there is no way to save the history from a pane at present, except using
send-keys something like:

tmux copy-mode\; send-keys 'M->' C-e C-space 'M-<' C-a C-w

extending capture-pane to do it as well as been on the todo list for
ages



On Fri, Feb 11, 2011 at 10:19:52PM -0500, mbm329 wrote:
> Hello list,
> 
> I'm using tmux v1.4 and trying to write a script that would, via cron,
> save the history buffer from all tmux windows.  I've tried
> capture-pane, but am only able to get the pane that is visible within
> the terminal window; the history is not saving to file.  I was able to
> save them in screen with "hardcopy" and restore them with "stuff".  By
> doing this, I could essentially backup and restore (for reboots,
> kernel-panics, etc...) my screen sessions.  Am I missing some obvious
> command or option?  Maybe a way to copy the history buffer of a pane
> into a paste-able buffer with copy-buffer or save-buffer?
> 
> Any ideas?
> 
> Thanks,
> 
> Mike
> 
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to