I use pipe-pane to capture the output of my sessions, but I would prefer not to have to spawn external processes to do so. I've attached a patch that enables pipe-pane to write directly to a file. I realize the semantics are a little off; you pipe to processes, not files. But it's close.
Doing "pipe-pane -f filename" will send the output to filename, creating it if it doesn't exist, and truncating it if it does. Doing "pipe-pane -f -a filename" will append to the file instead of truncating. The -o functionality works the same as with processes, but if you don't use the -a flag the file will get truncated every time you toggle. The functionality requires libevent2, so it won't work if you've got libevent1, though it should still compile.
pipe2file.patch
Description: Binary data
------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users