aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-17 18:45:08 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-17 18:45:08 +0000
commit6f5150a943425d7d5d65ae443f956931fcb82d0b (patch)
treec216bcb4894a8b6b330cc4775e8490e10a8b18b3 /tmux.h
parentad006bc6b66f335e87c0876d1b77af3541a4b517 (diff)
downloadrtmux-6f5150a943425d7d5d65ae443f956931fcb82d0b.tar.gz
rtmux-6f5150a943425d7d5d65ae443f956931fcb82d0b.tar.bz2
rtmux-6f5150a943425d7d5d65ae443f956931fcb82d0b.zip
- New command display-message (alias display) to display a message in the
status line (bound to "i" and displays the current window and time by default). The same substitutions are applied as for status-left/right. - Add support for including the window index (#I), pane index (#P) and window name (#W) in the message, and status-left or status-right. - Bump protocol version. From Tiago Cunha, thanks!
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 60455df1..2a0412ba 100644
--- a/tmux.h
+++ b/tmux.h
@@ -19,7 +19,7 @@
#ifndef TMUX_H
#define TMUX_H
-#define PROTOCOL_VERSION -13
+#define PROTOCOL_VERSION -14
#include <sys/param.h>
#include <sys/time.h>
@@ -1110,6 +1110,7 @@ extern const struct cmd_entry cmd_copy_buffer_entry;
extern const struct cmd_entry cmd_copy_mode_entry;
extern const struct cmd_entry cmd_delete_buffer_entry;
extern const struct cmd_entry cmd_detach_client_entry;
+extern const struct cmd_entry cmd_display_message_entry;
extern const struct cmd_entry cmd_down_pane_entry;
extern const struct cmd_entry cmd_find_window_entry;
extern const struct cmd_entry cmd_has_session_entry;
@@ -1286,6 +1287,7 @@ int server_unlock(const char *);
/* status.c */
int status_redraw(struct client *);
+char *status_replace(struct session *, const char *, time_t);
void printflike2 status_message_set(struct client *, const char *, ...);
void status_message_clear(struct client *);
int status_message_redraw(struct client *);
@@ -1447,6 +1449,7 @@ struct window_pane *window_add_pane(struct window *, int,
const char *, const char *, const char **, u_int, char **);
void window_remove_pane(struct window *, struct window_pane *);
struct window_pane *window_pane_at_index(struct window *, u_int);
+u_int window_pane_index(struct window *, struct window_pane *);
u_int window_count_panes(struct window *);
void window_destroy_panes(struct window *);
struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int);