aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-19 22:20:04 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-19 22:20:04 +0000
commitacc331c787f4d85c0909563139f7cc81c54edc55 (patch)
treea60e276b1f7ffffe8f5dec00fac1c721ae4121d2 /tmux.h
parent8777a809dc06282c74fad56d2b76c9c2770c89d4 (diff)
downloadrtmux-acc331c787f4d85c0909563139f7cc81c54edc55.tar.gz
rtmux-acc331c787f4d85c0909563139f7cc81c54edc55.tar.bz2
rtmux-acc331c787f4d85c0909563139f7cc81c54edc55.zip
Sync OpenBSD patchset 546:
Add a per-client log of status line messages displayed while that client exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). This (and prompt history) might be better as a single global log but until there are global options it is easier for them to be per client.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 46f3f7f5..35e38066 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.517 2009-11-14 17:57:41 tcunha Exp $ */
+/* $Id: tmux.h,v 1.518 2009-11-19 22:20:04 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1040,6 +1040,12 @@ struct mouse_event {
u_char y;
};
+/* Saved message entry. */
+struct message_entry {
+ char *msg;
+ time_t msg_time;
+};
+
/* Client connection. */
struct client {
struct imsgbuf ibuf;
@@ -1076,6 +1082,7 @@ struct client {
char *message_string;
struct event message_timer;
+ ARRAY_DECL(, struct message_entry) message_log;
char *prompt_string;
char *prompt_buffer;
@@ -1480,6 +1487,7 @@ extern const struct cmd_entry cmd_set_option_entry;
extern const struct cmd_entry cmd_set_window_option_entry;
extern const struct cmd_entry cmd_show_buffer_entry;
extern const struct cmd_entry cmd_show_environment_entry;
+extern const struct cmd_entry cmd_show_messages_entry;
extern const struct cmd_entry cmd_show_options_entry;
extern const struct cmd_entry cmd_show_window_options_entry;
extern const struct cmd_entry cmd_source_file_entry;