Add three new session options: visual-activity, visual-bell, visual-content.

If these are enabled (and the monitor-activity, bell-action and monitor-content
options are configurated appropriately), when activity, a bell, or content is
detected, a message is shown.

Also tidy up the bell/activity/content code in server.c slightly and fix a
couple of errors.
This commit is contained in:
Tiago Cunha
2009-07-19 14:35:56 +00:00
parent 4cf6396e4c
commit 376c808b50
5 changed files with 109 additions and 23 deletions

6
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.371 2009-07-18 11:07:14 nicm Exp $ */
/* $Id: tmux.h,v 1.372 2009-07-19 14:35:56 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -643,8 +643,8 @@ struct window {
#define WINDOW_BELL 0x1
#define WINDOW_HIDDEN 0x2
#define WINDOW_ACTIVITY 0x4
#define WINDOW_CONTENT 0x6
#define WINDOW_REDRAW 0x8
#define WINDOW_CONTENT 0x8
#define WINDOW_REDRAW 0x10
struct options options;