summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-03-18 14:10:26 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-03-18 14:10:26 +0000
commit76d0585d4b33bffd19f8206994ad99ed02556a7a (patch)
treeb2ff6218ad4d2814f6970898627db24569d508d2 /usr.bin/tmux/tmux.h
parentc15ee69529c66bff0aa19474c2230e89cb2b4573 (diff)
Add format variables for the default formats for the various modes
(tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 75fa606fcb0..4826aed41e1 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.872 2019/03/18 11:58:40 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.873 2019/03/18 14:10:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -704,6 +704,7 @@ struct screen_write_ctx {
struct window_mode_entry;
struct window_mode {
const char *name;
+ const char *default_format;
struct screen *(*init)(struct window_mode_entry *,
struct cmd_find_state *, struct args *);
@@ -1587,6 +1588,8 @@ struct format_tree *format_create(struct client *, struct cmdq_item *, int,
void format_free(struct format_tree *);
void printflike(3, 4) format_add(struct format_tree *, const char *,
const char *, ...);
+void format_each(struct format_tree *, void (*)(const char *,
+ const char *, void *), void *);
char *format_expand_time(struct format_tree *, const char *);
char *format_expand(struct format_tree *, const char *);
char *format_single(struct cmdq_item *, const char *,
@@ -2156,6 +2159,7 @@ void screen_select_cell(struct screen *, struct grid_cell *,
/* window.c */
extern struct windows windows;
extern struct window_pane_tree all_window_panes;
+extern const struct window_mode *all_window_modes[];
int window_cmp(struct window *, struct window *);
RB_PROTOTYPE(windows, window, entry, window_cmp);
int winlink_cmp(struct winlink *, struct winlink *);