Sebastian Tramp wrote:

> And just another question: Is there a resource available, where I can
> see examples for the monitor-content option? I've played around
> a little bit but wasn't successful (try a configure al mcabber alert)

I have this to alert me whenever tmux sees my shell prompt, but it only
works for commands with more than one screenful of output.  This is
because tmux looks for the match with fnmatch(3) in the entire screen.
Anyway, this is from my $HOME/.tmux.conf:

    # set-window-option -g monitor-content fnmatch(3)-string
    # trigger on the bash prompt appearing (after command completes)
    #set-window-option -g monitor-content '[0-9]*[0-9]*[#$]*'
    set-window-option -g monitor-content '[0-9]* [0-9]* [#$] ?'
    set-option -g visual-content on

Obviouly you need the fnmatch manual page for patterns, but they are
basically filename globs.  The code for content search is in window.c
with zero as options, ie. '\' is the escape character, slashes and
periods aren't special and case matters.


clemens


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to