diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-18 13:16:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-18 13:16:33 +0000 |
commit | 8db145da1ed40d471e9ecff0e788ced26a43fc92 (patch) | |
tree | fdb41dfba63f5cb24ad9607c1e28abb58179f27c /tmux.h | |
parent | 68f5c9c72da0c4430733de2094fbb8bc4d1e0474 (diff) | |
download | rtmux-8db145da1ed40d471e9ecff0e788ced26a43fc92.tar.gz rtmux-8db145da1ed40d471e9ecff0e788ced26a43fc92.tar.bz2 rtmux-8db145da1ed40d471e9ecff0e788ced26a43fc92.zip |
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |