summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-18 13:16:34 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-18 13:16:34 +0000
commite33df98b55285d194871e65c988fd48970c8c06c (patch)
tree71408c50179c862a8bb053a08a0113ecfb8d2539 /usr.bin/tmux/tmux.h
parent7c16973fb374e8a416cc404e2bd93e7d9eca4ec1 (diff)
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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index bdf016115e1..45644600d89 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.179 2009/11/13 19:58:32 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.180 2009/11/18 13:16:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1041,6 +1041,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;
@@ -1077,6 +1083,7 @@ struct client {
char *message_string;
struct event message_timer;
+ ARRAY_DECL(, struct message_entry) message_log;
char *prompt_string;
char *prompt_buffer;
@@ -1481,6 +1488,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;