you can try 'pipe-pane', pls read tmux's manpage to get more details.

I use it to check if tests are finished, send a notification(growl) to
me, and it works very well. 

* clemens fischer <ino-n...@spotteswoode.dnsalias.org> [2010-05-30 17:16:06 
+0200]:

> 'uname -rims' -> Linux 2.6.33.4-spott i686 AuthenticAMD
> tmux-CVS from today
> 
> Hi,
> 
> I have these settings in ".tmux.conf":
> 
>     set-window-option -g monitor-content '[0-9]* [0-9]* [#$] ?'
>     set-option -g visual-content on
> 
> designed to match my shells prompt[1] looking like this:  "0 4 # ".  The
> first number is the exit status of the last command, then comes the PTY
> number and then "#" for root and "$" for a regular user, a space and
> there's the bash waiting for input.
> 
> Tmux flags content as soon as anything is printed to screen, not only
> this prompt.  Linux has fnmatch(3), I see it is used without any flags
> every place, shouldn't it match _new_ content only?  In
> "window.c::window_pane_search()" it is used on every line on the screen
> (without history, it seems).  But why doesn't it trigger as soon as any
> prompt is seen, ie.  immediately?
> 
> [1]
> 1 4 # echo "${PS1}"
> \w\n${_last_status} ${_this_pty} \$
> 
> 
> clemens
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

-- 
"The tool that save the most labor in a programming project is probably a 
text-editing system"  -- <<The Mythical Man-Month>>

http://blog.linsong.org

------------------------------------------------------------------------------

_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to