diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-05-22 21:03:25 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-05-22 21:03:25 +0000 |
commit | 5cc4961fd28fe920236c6716f6ff751d22d90188 (patch) | |
tree | 7cd1846843b9693dd46f0eae010e5297c6f5ce79 /tmux.h | |
parent | baafc17a1e9e6b622bcb36dfd096c1316dcbbfda (diff) | |
download | rtmux-5cc4961fd28fe920236c6716f6ff751d22d90188.tar.gz rtmux-5cc4961fd28fe920236c6716f6ff751d22d90188.tar.bz2 rtmux-5cc4961fd28fe920236c6716f6ff751d22d90188.zip |
Sync OpenBSD patchset 1119:
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -88,6 +88,37 @@ extern char **environ; #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) #endif +/* Default format templates. */ +#define DEFAULT_BUFFER_LIST_TEMPLATE \ + "#{line}: #{buffer_size} bytes: \"#{buffer_sample}\"" +#define DEFAULT_CLIENT_TEMPLATE \ + "#{client_tty}: #{session_name} " \ + "[#client_width}x#{client_height} #{client_termname}]" \ + "{?client_utf8, (utf8),} #{?client_readonly, (ro),}" +#define DEFAULT_DISPLAY_MESSAGE_TEMPLATE \ + "[#{session_name}] #{window_index}:" \ + "#{window_name}, current pane #{pane_index} " \ + "- (%H:%M %d-%b-%y)" +#define DEFAULT_FIND_WINDOW_TEMPLATE \ + "#{window_index}: #{window_name} " \ + "[#{window_width}x#{window_height}] " \ + "(#{window_panes} panes) #{window_find_matches}" +#define DEFAULT_SESSION_TEMPLATE \ + "#{session_name}: #{session_windows} windows " \ + "(created #{session_created_string}) " \ + "[#{session_width}x#{session_height}]" \ + "#{?session_grouped, (group ,}" \ + "#{session_group}#{?session_grouped,),}" \ + "#{?session_attached, (attached),}" +#define DEFAULT_WINDOW_TEMPLATE \ + "#{window_index}: #{window_name}#{window_flags} " \ + "(#{window_panes} panes) " \ + "[#{window_width}x#{window_height}] " \ + "[layout #{window_layout}] #{window_id}" \ + "#{?window_active, (active),}" +#define DEFAULT_PANE_INFO_TEMPLATE \ + "#{session_name}:#{window_index}.#{pane_index}" + /* Bell option values. */ #define BELL_NONE 0 #define BELL_ANY 1 @@ -1402,6 +1433,7 @@ void format_client(struct format_tree *, struct client *); void format_winlink( struct format_tree *, struct session *, struct winlink *); void format_window_pane(struct format_tree *, struct window_pane *); +void format_paste_buffer(struct format_tree *, struct paste_buffer *); /* mode-key.c */ extern const struct mode_key_table mode_key_tables[]; |