Merge branch 'obsd-master'
[tmux.git] / options-table.c
blob37fab5490071c70e9ed143ff10daf75edb167b11
1 /* $OpenBSD$ */
3 /*
4 * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
15 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
16 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #include <sys/types.h>
21 #include <string.h>
23 #include "tmux.h"
26 * This file has a tables with all the server, session and window
27 * options. These tables are the master copy of the options with their real
28 * (user-visible) types, range limits and default values. At start these are
29 * copied into the runtime global options trees (which only has number and
30 * string types). These tables are then used to look up the real type when the
31 * user sets an option or its value needs to be shown.
34 /* Choice option type lists. */
35 static const char *options_table_mode_keys_list[] = {
36 "emacs", "vi", NULL
38 static const char *options_table_clock_mode_style_list[] = {
39 "12", "24", NULL
41 static const char *options_table_status_list[] = {
42 "off", "on", "2", "3", "4", "5", NULL
44 static const char *options_table_message_line_list[] = {
45 "0", "1", "2", "3", "4", NULL
47 static const char *options_table_status_keys_list[] = {
48 "emacs", "vi", NULL
50 static const char *options_table_status_justify_list[] = {
51 "left", "centre", "right", "absolute-centre", NULL
53 static const char *options_table_status_position_list[] = {
54 "top", "bottom", NULL
56 static const char *options_table_bell_action_list[] = {
57 "none", "any", "current", "other", NULL
59 static const char *options_table_visual_bell_list[] = {
60 "off", "on", "both", NULL
62 static const char *options_table_cursor_style_list[] = {
63 "default", "blinking-block", "block", "blinking-underline", "underline",
64 "blinking-bar", "bar", NULL
66 static const char *options_table_pane_status_list[] = {
67 "off", "top", "bottom", NULL
69 static const char *options_table_pane_border_indicators_list[] = {
70 "off", "colour", "arrows", "both", NULL
72 static const char *options_table_pane_border_lines_list[] = {
73 "single", "double", "heavy", "simple", "number", NULL
75 static const char *options_table_popup_border_lines_list[] = {
76 "single", "double", "heavy", "simple", "rounded", "padded", "none", NULL
78 static const char *options_table_set_clipboard_list[] = {
79 "off", "external", "on", NULL
81 static const char *options_table_window_size_list[] = {
82 "largest", "smallest", "manual", "latest", NULL
84 static const char *options_table_remain_on_exit_list[] = {
85 "off", "on", "failed", NULL
87 static const char *options_table_destroy_unattached_list[] = {
88 "off", "on", "keep-last", "keep-group", NULL
90 static const char *options_table_detach_on_destroy_list[] = {
91 "off", "on", "no-detached", "previous", "next", NULL
93 static const char *options_table_extended_keys_list[] = {
94 "off", "on", "always", NULL
96 static const char *options_table_extended_keys_format_list[] = {
97 "csi-u", "xterm", NULL
99 static const char *options_table_allow_passthrough_list[] = {
100 "off", "on", "all", NULL
103 /* Status line format. */
104 #define OPTIONS_TABLE_STATUS_FORMAT1 \
105 "#[align=left range=left #{E:status-left-style}]" \
106 "#[push-default]" \
107 "#{T;=/#{status-left-length}:status-left}" \
108 "#[pop-default]" \
109 "#[norange default]" \
110 "#[list=on align=#{status-justify}]" \
111 "#[list=left-marker]<#[list=right-marker]>#[list=on]" \
112 "#{W:" \
113 "#[range=window|#{window_index} " \
114 "#{E:window-status-style}" \
115 "#{?#{&&:#{window_last_flag}," \
116 "#{!=:#{E:window-status-last-style},default}}, " \
117 "#{E:window-status-last-style}," \
118 "}" \
119 "#{?#{&&:#{window_bell_flag}," \
120 "#{!=:#{E:window-status-bell-style},default}}, " \
121 "#{E:window-status-bell-style}," \
122 "#{?#{&&:#{||:#{window_activity_flag}," \
123 "#{window_silence_flag}}," \
124 "#{!=:" \
125 "#{E:window-status-activity-style}," \
126 "default}}, " \
127 "#{E:window-status-activity-style}," \
128 "}" \
129 "}" \
130 "]" \
131 "#[push-default]" \
132 "#{T:window-status-format}" \
133 "#[pop-default]" \
134 "#[norange default]" \
135 "#{?window_end_flag,,#{window-status-separator}}" \
136 "," \
137 "#[range=window|#{window_index} list=focus " \
138 "#{?#{!=:#{E:window-status-current-style},default}," \
139 "#{E:window-status-current-style}," \
140 "#{E:window-status-style}" \
141 "}" \
142 "#{?#{&&:#{window_last_flag}," \
143 "#{!=:#{E:window-status-last-style},default}}, " \
144 "#{E:window-status-last-style}," \
145 "}" \
146 "#{?#{&&:#{window_bell_flag}," \
147 "#{!=:#{E:window-status-bell-style},default}}, " \
148 "#{E:window-status-bell-style}," \
149 "#{?#{&&:#{||:#{window_activity_flag}," \
150 "#{window_silence_flag}}," \
151 "#{!=:" \
152 "#{E:window-status-activity-style}," \
153 "default}}, " \
154 "#{E:window-status-activity-style}," \
155 "}" \
156 "}" \
157 "]" \
158 "#[push-default]" \
159 "#{T:window-status-current-format}" \
160 "#[pop-default]" \
161 "#[norange list=on default]" \
162 "#{?window_end_flag,,#{window-status-separator}}" \
163 "}" \
164 "#[nolist align=right range=right #{E:status-right-style}]" \
165 "#[push-default]" \
166 "#{T;=/#{status-right-length}:status-right}" \
167 "#[pop-default]" \
168 "#[norange default]"
169 #define OPTIONS_TABLE_STATUS_FORMAT2 \
170 "#[align=centre]#{P:#{?pane_active,#[reverse],}" \
171 "#{pane_index}[#{pane_width}x#{pane_height}]#[default] }"
172 static const char *options_table_status_format_default[] = {
173 OPTIONS_TABLE_STATUS_FORMAT1, OPTIONS_TABLE_STATUS_FORMAT2, NULL
176 /* Helpers for hook options. */
177 #define OPTIONS_TABLE_HOOK(hook_name, default_value) \
178 { .name = hook_name, \
179 .type = OPTIONS_TABLE_COMMAND, \
180 .scope = OPTIONS_TABLE_SESSION, \
181 .flags = OPTIONS_TABLE_IS_ARRAY|OPTIONS_TABLE_IS_HOOK, \
182 .default_str = default_value, \
183 .separator = "" \
186 #define OPTIONS_TABLE_PANE_HOOK(hook_name, default_value) \
187 { .name = hook_name, \
188 .type = OPTIONS_TABLE_COMMAND, \
189 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, \
190 .flags = OPTIONS_TABLE_IS_ARRAY|OPTIONS_TABLE_IS_HOOK, \
191 .default_str = default_value, \
192 .separator = "" \
195 #define OPTIONS_TABLE_WINDOW_HOOK(hook_name, default_value) \
196 { .name = hook_name, \
197 .type = OPTIONS_TABLE_COMMAND, \
198 .scope = OPTIONS_TABLE_WINDOW, \
199 .flags = OPTIONS_TABLE_IS_ARRAY|OPTIONS_TABLE_IS_HOOK, \
200 .default_str = default_value, \
201 .separator = "" \
204 /* Map of name conversions. */
205 const struct options_name_map options_other_names[] = {
206 { "display-panes-color", "display-panes-colour" },
207 { "display-panes-active-color", "display-panes-active-colour" },
208 { "clock-mode-color", "clock-mode-colour" },
209 { "cursor-color", "cursor-colour" },
210 { "pane-colors", "pane-colours" },
211 { NULL, NULL }
214 /* Top-level options. */
215 const struct options_table_entry options_table[] = {
216 /* Server options. */
217 { .name = "backspace",
218 .type = OPTIONS_TABLE_KEY,
219 .scope = OPTIONS_TABLE_SERVER,
220 .default_num = '\177',
221 .text = "The key to send for backspace."
224 { .name = "buffer-limit",
225 .type = OPTIONS_TABLE_NUMBER,
226 .scope = OPTIONS_TABLE_SERVER,
227 .minimum = 1,
228 .maximum = INT_MAX,
229 .default_num = 50,
230 .text = "The maximum number of automatic buffers. "
231 "When this is reached, the oldest buffer is deleted."
234 { .name = "command-alias",
235 .type = OPTIONS_TABLE_STRING,
236 .scope = OPTIONS_TABLE_SERVER,
237 .flags = OPTIONS_TABLE_IS_ARRAY,
238 .default_str = "split-pane=split-window,"
239 "splitp=split-window,"
240 "server-info=show-messages -JT,"
241 "info=show-messages -JT,"
242 "choose-window=choose-tree -w,"
243 "choose-session=choose-tree -s",
244 .separator = ",",
245 .text = "Array of command aliases. "
246 "Each entry is an alias and a command separated by '='."
249 { .name = "copy-command",
250 .type = OPTIONS_TABLE_STRING,
251 .scope = OPTIONS_TABLE_SERVER,
252 .default_str = "",
253 .text = "Shell command run when text is copied. "
254 "If empty, no command is run."
257 { .name = "cursor-colour",
258 .type = OPTIONS_TABLE_COLOUR,
259 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
260 .default_num = -1,
261 .text = "Colour of the cursor."
264 { .name = "cursor-style",
265 .type = OPTIONS_TABLE_CHOICE,
266 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
267 .choices = options_table_cursor_style_list,
268 .default_num = 0,
269 .text = "Style of the cursor."
272 { .name = "default-terminal",
273 .type = OPTIONS_TABLE_STRING,
274 .scope = OPTIONS_TABLE_SERVER,
275 .default_str = TMUX_TERM,
276 .text = "Default for the 'TERM' environment variable."
279 { .name = "editor",
280 .type = OPTIONS_TABLE_STRING,
281 .scope = OPTIONS_TABLE_SERVER,
282 .default_str = _PATH_VI,
283 .text = "Editor run to edit files."
286 { .name = "escape-time",
287 .type = OPTIONS_TABLE_NUMBER,
288 .scope = OPTIONS_TABLE_SERVER,
289 .minimum = 0,
290 .maximum = INT_MAX,
291 .default_num = 10,
292 .unit = "milliseconds",
293 .text = "Time to wait before assuming a key is Escape."
296 { .name = "exit-empty",
297 .type = OPTIONS_TABLE_FLAG,
298 .scope = OPTIONS_TABLE_SERVER,
299 .default_num = 1,
300 .text = "Whether the server should exit if there are no sessions."
303 { .name = "exit-unattached",
304 .type = OPTIONS_TABLE_FLAG,
305 .scope = OPTIONS_TABLE_SERVER,
306 .default_num = 0,
307 .text = "Whether the server should exit if there are no attached "
308 "clients."
311 { .name = "extended-keys",
312 .type = OPTIONS_TABLE_CHOICE,
313 .scope = OPTIONS_TABLE_SERVER,
314 .choices = options_table_extended_keys_list,
315 .default_num = 0,
316 .text = "Whether to request extended key sequences from terminals "
317 "that support it."
320 { .name = "extended-keys-format",
321 .type = OPTIONS_TABLE_CHOICE,
322 .scope = OPTIONS_TABLE_SERVER,
323 .choices = options_table_extended_keys_format_list,
324 .default_num = 1,
325 .text = "The format of emitted extended key sequences."
328 { .name = "focus-events",
329 .type = OPTIONS_TABLE_FLAG,
330 .scope = OPTIONS_TABLE_SERVER,
331 .default_num = 0,
332 .text = "Whether to send focus events to applications."
335 { .name = "history-file",
336 .type = OPTIONS_TABLE_STRING,
337 .scope = OPTIONS_TABLE_SERVER,
338 .default_str = "",
339 .text = "Location of the command prompt history file. "
340 "Empty does not write a history file."
343 { .name = "menu-style",
344 .type = OPTIONS_TABLE_STRING,
345 .scope = OPTIONS_TABLE_WINDOW,
346 .flags = OPTIONS_TABLE_IS_STYLE,
347 .default_str = "default",
348 .separator = ",",
349 .text = "Default style of menu."
352 { .name = "menu-selected-style",
353 .type = OPTIONS_TABLE_STRING,
354 .scope = OPTIONS_TABLE_WINDOW,
355 .flags = OPTIONS_TABLE_IS_STYLE,
356 .default_str = "bg=yellow,fg=black",
357 .separator = ",",
358 .text = "Default style of selected menu item."
361 { .name = "menu-border-style",
362 .type = OPTIONS_TABLE_STRING,
363 .scope = OPTIONS_TABLE_WINDOW,
364 .default_str = "default",
365 .flags = OPTIONS_TABLE_IS_STYLE,
366 .separator = ",",
367 .text = "Default style of menu borders."
370 { .name = "menu-border-lines",
371 .type = OPTIONS_TABLE_CHOICE,
372 .scope = OPTIONS_TABLE_WINDOW,
373 .choices = options_table_popup_border_lines_list,
374 .default_num = BOX_LINES_SINGLE,
375 .text = "Type of characters used to draw menu border lines. Some of "
376 "these are only supported on terminals with UTF-8 support."
379 { .name = "message-limit",
380 .type = OPTIONS_TABLE_NUMBER,
381 .scope = OPTIONS_TABLE_SERVER,
382 .minimum = 0,
383 .maximum = INT_MAX,
384 .default_num = 1000,
385 .text = "Maximum number of server messages to keep."
388 { .name = "prompt-history-limit",
389 .type = OPTIONS_TABLE_NUMBER,
390 .scope = OPTIONS_TABLE_SERVER,
391 .minimum = 0,
392 .maximum = INT_MAX,
393 .default_num = 100,
394 .text = "Maximum number of commands to keep in history."
397 { .name = "set-clipboard",
398 .type = OPTIONS_TABLE_CHOICE,
399 .scope = OPTIONS_TABLE_SERVER,
400 .choices = options_table_set_clipboard_list,
401 .default_num = 1,
402 .text = "Whether to attempt to set the system clipboard ('on' or "
403 "'external') and whether to allow applications to create "
404 "paste buffers with an escape sequence ('on' only)."
407 { .name = "terminal-overrides",
408 .type = OPTIONS_TABLE_STRING,
409 .scope = OPTIONS_TABLE_SERVER,
410 .flags = OPTIONS_TABLE_IS_ARRAY,
411 .default_str = "linux*:AX@",
412 .separator = ",",
413 .text = "List of terminal capabilities overrides."
416 { .name = "terminal-features",
417 .type = OPTIONS_TABLE_STRING,
418 .scope = OPTIONS_TABLE_SERVER,
419 .flags = OPTIONS_TABLE_IS_ARRAY,
420 .default_str = "xterm*:clipboard:ccolour:cstyle:focus:title,"
421 "screen*:title,"
422 "rxvt*:ignorefkeys",
423 .separator = ",",
424 .text = "List of terminal features, used if they cannot be "
425 "automatically detected."
428 { .name = "user-keys",
429 .type = OPTIONS_TABLE_STRING,
430 .scope = OPTIONS_TABLE_SERVER,
431 .flags = OPTIONS_TABLE_IS_ARRAY,
432 .default_str = "",
433 .separator = ",",
434 .text = "User key assignments. "
435 "Each sequence in the list is translated into a key: "
436 "'User0', 'User1' and so on."
439 /* Session options. */
440 { .name = "activity-action",
441 .type = OPTIONS_TABLE_CHOICE,
442 .scope = OPTIONS_TABLE_SESSION,
443 .choices = options_table_bell_action_list,
444 .default_num = ALERT_OTHER,
445 .text = "Action to take on an activity alert."
448 { .name = "assume-paste-time",
449 .type = OPTIONS_TABLE_NUMBER,
450 .scope = OPTIONS_TABLE_SESSION,
451 .minimum = 0,
452 .maximum = INT_MAX,
453 .default_num = 1,
454 .unit = "milliseconds",
455 .text = "Maximum time between input to assume it is pasting rather "
456 "than typing."
459 { .name = "base-index",
460 .type = OPTIONS_TABLE_NUMBER,
461 .scope = OPTIONS_TABLE_SESSION,
462 .minimum = 0,
463 .maximum = INT_MAX,
464 .default_num = 0,
465 .text = "Default index of the first window in each session."
468 { .name = "bell-action",
469 .type = OPTIONS_TABLE_CHOICE,
470 .scope = OPTIONS_TABLE_SESSION,
471 .choices = options_table_bell_action_list,
472 .default_num = ALERT_ANY,
473 .text = "Action to take on a bell alert."
476 { .name = "default-command",
477 .type = OPTIONS_TABLE_STRING,
478 .scope = OPTIONS_TABLE_SESSION,
479 .default_str = "",
480 .text = "Default command to run in new panes. If empty, a shell is "
481 "started."
484 { .name = "default-shell",
485 .type = OPTIONS_TABLE_STRING,
486 .scope = OPTIONS_TABLE_SESSION,
487 .default_str = _PATH_BSHELL,
488 .text = "Location of default shell."
491 { .name = "default-size",
492 .type = OPTIONS_TABLE_STRING,
493 .scope = OPTIONS_TABLE_SESSION,
494 .pattern = "[0-9]*x[0-9]*",
495 .default_str = "80x24",
496 .text = "Initial size of new sessions."
499 { .name = "destroy-unattached",
500 .type = OPTIONS_TABLE_CHOICE,
501 .scope = OPTIONS_TABLE_SESSION,
502 .choices = options_table_destroy_unattached_list,
503 .default_num = 0,
504 .text = "Whether to destroy sessions when they have no attached "
505 "clients, or keep the last session whether in the group."
508 { .name = "detach-on-destroy",
509 .type = OPTIONS_TABLE_CHOICE,
510 .scope = OPTIONS_TABLE_SESSION,
511 .choices = options_table_detach_on_destroy_list,
512 .default_num = 1,
513 .text = "Whether to detach when a session is destroyed, or switch "
514 "the client to another session if any exist."
517 { .name = "display-panes-active-colour",
518 .type = OPTIONS_TABLE_COLOUR,
519 .scope = OPTIONS_TABLE_SESSION,
520 .default_num = 1,
521 .text = "Colour of the active pane for 'display-panes'."
524 { .name = "display-panes-colour",
525 .type = OPTIONS_TABLE_COLOUR,
526 .scope = OPTIONS_TABLE_SESSION,
527 .default_num = 4,
528 .text = "Colour of not active panes for 'display-panes'."
531 { .name = "display-panes-time",
532 .type = OPTIONS_TABLE_NUMBER,
533 .scope = OPTIONS_TABLE_SESSION,
534 .minimum = 1,
535 .maximum = INT_MAX,
536 .default_num = 1000,
537 .unit = "milliseconds",
538 .text = "Time for which 'display-panes' should show pane numbers."
541 { .name = "display-time",
542 .type = OPTIONS_TABLE_NUMBER,
543 .scope = OPTIONS_TABLE_SESSION,
544 .minimum = 0,
545 .maximum = INT_MAX,
546 .default_num = 750,
547 .unit = "milliseconds",
548 .text = "Time for which status line messages should appear."
551 { .name = "history-limit",
552 .type = OPTIONS_TABLE_NUMBER,
553 .scope = OPTIONS_TABLE_SESSION,
554 .minimum = 0,
555 .maximum = INT_MAX,
556 .default_num = 2000,
557 .unit = "lines",
558 .text = "Maximum number of lines to keep in the history for each "
559 "pane. "
560 "If changed, the new value applies only to new panes."
563 { .name = "key-table",
564 .type = OPTIONS_TABLE_STRING,
565 .scope = OPTIONS_TABLE_SESSION,
566 .default_str = "root",
567 .text = "Default key table. "
568 "Key presses are first looked up in this table."
571 { .name = "lock-after-time",
572 .type = OPTIONS_TABLE_NUMBER,
573 .scope = OPTIONS_TABLE_SESSION,
574 .minimum = 0,
575 .maximum = INT_MAX,
576 .default_num = 0,
577 .unit = "seconds",
578 .text = "Time after which a client is locked if not used."
581 { .name = "lock-command",
582 .type = OPTIONS_TABLE_STRING,
583 .scope = OPTIONS_TABLE_SESSION,
584 .default_str = TMUX_LOCK_CMD,
585 .text = "Shell command to run to lock a client."
588 { .name = "message-command-style",
589 .type = OPTIONS_TABLE_STRING,
590 .scope = OPTIONS_TABLE_SESSION,
591 .default_str = "bg=black,fg=yellow",
592 .flags = OPTIONS_TABLE_IS_STYLE,
593 .separator = ",",
594 .text = "Style of the command prompt when in command mode, if "
595 "'mode-keys' is set to 'vi'."
598 { .name = "message-line",
599 .type = OPTIONS_TABLE_CHOICE,
600 .scope = OPTIONS_TABLE_SESSION,
601 .choices = options_table_message_line_list,
602 .default_num = 0,
603 .text = "Position (line) of messages and the command prompt."
606 { .name = "message-style",
607 .type = OPTIONS_TABLE_STRING,
608 .scope = OPTIONS_TABLE_SESSION,
609 .default_str = "bg=yellow,fg=black",
610 .flags = OPTIONS_TABLE_IS_STYLE,
611 .separator = ",",
612 .text = "Style of messages and the command prompt."
615 { .name = "mouse",
616 .type = OPTIONS_TABLE_FLAG,
617 .scope = OPTIONS_TABLE_SESSION,
618 .default_num = 0,
619 .text = "Whether the mouse is recognised and mouse key bindings are "
620 "executed. "
621 "Applications inside panes can use the mouse even when 'off'."
624 { .name = "prefix",
625 .type = OPTIONS_TABLE_KEY,
626 .scope = OPTIONS_TABLE_SESSION,
627 .default_num = 'b'|KEYC_CTRL,
628 .text = "The prefix key."
631 { .name = "prefix2",
632 .type = OPTIONS_TABLE_KEY,
633 .scope = OPTIONS_TABLE_SESSION,
634 .default_num = KEYC_NONE,
635 .text = "A second prefix key."
638 { .name = "renumber-windows",
639 .type = OPTIONS_TABLE_FLAG,
640 .scope = OPTIONS_TABLE_SESSION,
641 .default_num = 0,
642 .text = "Whether windows are automatically renumbered rather than "
643 "leaving gaps."
646 { .name = "repeat-time",
647 .type = OPTIONS_TABLE_NUMBER,
648 .scope = OPTIONS_TABLE_SESSION,
649 .minimum = 0,
650 .maximum = SHRT_MAX,
651 .default_num = 500,
652 .unit = "milliseconds",
653 .text = "Time to wait for a key binding to repeat, if it is bound "
654 "with the '-r' flag."
657 { .name = "set-titles",
658 .type = OPTIONS_TABLE_FLAG,
659 .scope = OPTIONS_TABLE_SESSION,
660 .default_num = 0,
661 .text = "Whether to set the terminal title, if supported."
664 { .name = "set-titles-string",
665 .type = OPTIONS_TABLE_STRING,
666 .scope = OPTIONS_TABLE_SESSION,
667 .default_str = "#S:#I:#W - \"#T\" #{session_alerts}",
668 .text = "Format of the terminal title to set."
671 { .name = "silence-action",
672 .type = OPTIONS_TABLE_CHOICE,
673 .scope = OPTIONS_TABLE_SESSION,
674 .choices = options_table_bell_action_list,
675 .default_num = ALERT_OTHER,
676 .text = "Action to take on a silence alert."
679 { .name = "status",
680 .type = OPTIONS_TABLE_CHOICE,
681 .scope = OPTIONS_TABLE_SESSION,
682 .choices = options_table_status_list,
683 .default_num = 1,
684 .text = "Number of lines in the status line."
687 { .name = "status-bg",
688 .type = OPTIONS_TABLE_COLOUR,
689 .scope = OPTIONS_TABLE_SESSION,
690 .default_num = 8,
691 .text = "Background colour of the status line. This option is "
692 "deprecated, use 'status-style' instead."
695 { .name = "status-fg",
696 .type = OPTIONS_TABLE_COLOUR,
697 .scope = OPTIONS_TABLE_SESSION,
698 .default_num = 8,
699 .text = "Foreground colour of the status line. This option is "
700 "deprecated, use 'status-style' instead."
703 { .name = "status-format",
704 .type = OPTIONS_TABLE_STRING,
705 .scope = OPTIONS_TABLE_SESSION,
706 .flags = OPTIONS_TABLE_IS_ARRAY,
707 .default_arr = options_table_status_format_default,
708 .text = "Formats for the status lines. "
709 "Each array member is the format for one status line. "
710 "The default status line is made up of several components "
711 "which may be configured individually with other options such "
712 "as 'status-left'."
715 { .name = "status-interval",
716 .type = OPTIONS_TABLE_NUMBER,
717 .scope = OPTIONS_TABLE_SESSION,
718 .minimum = 0,
719 .maximum = INT_MAX,
720 .default_num = 15,
721 .unit = "seconds",
722 .text = "Number of seconds between status line updates."
725 { .name = "status-justify",
726 .type = OPTIONS_TABLE_CHOICE,
727 .scope = OPTIONS_TABLE_SESSION,
728 .choices = options_table_status_justify_list,
729 .default_num = 0,
730 .text = "Position of the window list in the status line."
733 { .name = "status-keys",
734 .type = OPTIONS_TABLE_CHOICE,
735 .scope = OPTIONS_TABLE_SESSION,
736 .choices = options_table_status_keys_list,
737 .default_num = MODEKEY_EMACS,
738 .text = "Key set to use at the command prompt."
741 { .name = "status-left",
742 .type = OPTIONS_TABLE_STRING,
743 .scope = OPTIONS_TABLE_SESSION,
744 .default_str = "[#{session_name}] ",
745 .text = "Contents of the left side of the status line."
748 { .name = "status-left-length",
749 .type = OPTIONS_TABLE_NUMBER,
750 .scope = OPTIONS_TABLE_SESSION,
751 .minimum = 0,
752 .maximum = SHRT_MAX,
753 .default_num = 10,
754 .text = "Maximum width of the left side of the status line."
757 { .name = "status-left-style",
758 .type = OPTIONS_TABLE_STRING,
759 .scope = OPTIONS_TABLE_SESSION,
760 .default_str = "default",
761 .flags = OPTIONS_TABLE_IS_STYLE,
762 .separator = ",",
763 .text = "Style of the left side of the status line."
766 { .name = "status-position",
767 .type = OPTIONS_TABLE_CHOICE,
768 .scope = OPTIONS_TABLE_SESSION,
769 .choices = options_table_status_position_list,
770 .default_num = 1,
771 .text = "Position of the status line."
774 { .name = "status-right",
775 .type = OPTIONS_TABLE_STRING,
776 .scope = OPTIONS_TABLE_SESSION,
777 .default_str = "#{?window_bigger,"
778 "[#{window_offset_x}#,#{window_offset_y}] ,}"
779 "\"#{=21:pane_title}\" %H:%M %d-%b-%y",
780 .text = "Contents of the right side of the status line."
784 { .name = "status-right-length",
785 .type = OPTIONS_TABLE_NUMBER,
786 .scope = OPTIONS_TABLE_SESSION,
787 .minimum = 0,
788 .maximum = SHRT_MAX,
789 .default_num = 40,
790 .text = "Maximum width of the right side of the status line."
793 { .name = "status-right-style",
794 .type = OPTIONS_TABLE_STRING,
795 .scope = OPTIONS_TABLE_SESSION,
796 .default_str = "default",
797 .flags = OPTIONS_TABLE_IS_STYLE,
798 .separator = ",",
799 .text = "Style of the right side of the status line."
802 { .name = "status-style",
803 .type = OPTIONS_TABLE_STRING,
804 .scope = OPTIONS_TABLE_SESSION,
805 .default_str = "bg=green,fg=black",
806 .flags = OPTIONS_TABLE_IS_STYLE,
807 .separator = ",",
808 .text = "Style of the status line."
811 { .name = "update-environment",
812 .type = OPTIONS_TABLE_STRING,
813 .scope = OPTIONS_TABLE_SESSION,
814 .flags = OPTIONS_TABLE_IS_ARRAY,
815 .default_str = "DISPLAY KRB5CCNAME SSH_ASKPASS SSH_AUTH_SOCK "
816 "SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY",
817 .text = "List of environment variables to update in the session "
818 "environment when a client is attached."
821 { .name = "visual-activity",
822 .type = OPTIONS_TABLE_CHOICE,
823 .scope = OPTIONS_TABLE_SESSION,
824 .choices = options_table_visual_bell_list,
825 .default_num = VISUAL_OFF,
826 .text = "How activity alerts should be shown: a message ('on'), "
827 "a message and a bell ('both') or nothing ('off')."
830 { .name = "visual-bell",
831 .type = OPTIONS_TABLE_CHOICE,
832 .scope = OPTIONS_TABLE_SESSION,
833 .choices = options_table_visual_bell_list,
834 .default_num = VISUAL_OFF,
835 .text = "How bell alerts should be shown: a message ('on'), "
836 "a message and a bell ('both') or nothing ('off')."
839 { .name = "visual-silence",
840 .type = OPTIONS_TABLE_CHOICE,
841 .scope = OPTIONS_TABLE_SESSION,
842 .choices = options_table_visual_bell_list,
843 .default_num = VISUAL_OFF,
844 .text = "How silence alerts should be shown: a message ('on'), "
845 "a message and a bell ('both') or nothing ('off')."
848 { .name = "word-separators",
849 .type = OPTIONS_TABLE_STRING,
850 .scope = OPTIONS_TABLE_SESSION,
852 * The set of non-alphanumeric printable ASCII characters minus the
853 * underscore.
855 .default_str = "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~",
856 .text = "Characters considered to separate words."
859 /* Window options. */
860 { .name = "aggressive-resize",
861 .type = OPTIONS_TABLE_FLAG,
862 .scope = OPTIONS_TABLE_WINDOW,
863 .default_num = 0,
864 .text = "When 'window-size' is 'smallest', whether the maximum size "
865 "of a window is the smallest attached session where it is "
866 "the current window ('on') or the smallest session it is "
867 "linked to ('off')."
870 { .name = "allow-passthrough",
871 .type = OPTIONS_TABLE_CHOICE,
872 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
873 .choices = options_table_allow_passthrough_list,
874 .default_num = 0,
875 .text = "Whether applications are allowed to use the escape sequence "
876 "to bypass tmux. Can be 'off' (disallowed), 'on' (allowed "
877 "if the pane is visible), or 'all' (allowed even if the pane "
878 "is invisible)."
881 { .name = "allow-rename",
882 .type = OPTIONS_TABLE_FLAG,
883 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
884 .default_num = 0,
885 .text = "Whether applications are allowed to use the escape sequence "
886 "to rename windows."
889 { .name = "allow-set-title",
890 .type = OPTIONS_TABLE_FLAG,
891 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
892 .default_num = 1,
893 .text = "Whether applications are allowed to use the escape sequence "
894 "to set the pane title."
897 { .name = "alternate-screen",
898 .type = OPTIONS_TABLE_FLAG,
899 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
900 .default_num = 1,
901 .text = "Whether applications are allowed to use the alternate "
902 "screen."
905 { .name = "automatic-rename",
906 .type = OPTIONS_TABLE_FLAG,
907 .scope = OPTIONS_TABLE_WINDOW,
908 .default_num = 1,
909 .text = "Whether windows are automatically renamed."
912 { .name = "automatic-rename-format",
913 .type = OPTIONS_TABLE_STRING,
914 .scope = OPTIONS_TABLE_WINDOW,
915 .default_str = "#{?pane_in_mode,[tmux],#{pane_current_command}}"
916 "#{?pane_dead,[dead],}",
917 .text = "Format used to automatically rename windows."
920 { .name = "clock-mode-colour",
921 .type = OPTIONS_TABLE_COLOUR,
922 .scope = OPTIONS_TABLE_WINDOW,
923 .default_num = 4,
924 .text = "Colour of the clock in clock mode."
927 { .name = "clock-mode-style",
928 .type = OPTIONS_TABLE_CHOICE,
929 .scope = OPTIONS_TABLE_WINDOW,
930 .choices = options_table_clock_mode_style_list,
931 .default_num = 1,
932 .text = "Time format of the clock in clock mode."
935 { .name = "copy-mode-match-style",
936 .type = OPTIONS_TABLE_STRING,
937 .scope = OPTIONS_TABLE_WINDOW,
938 .default_str = "bg=cyan,fg=black",
939 .flags = OPTIONS_TABLE_IS_STYLE,
940 .separator = ",",
941 .text = "Style of search matches in copy mode."
944 { .name = "copy-mode-current-match-style",
945 .type = OPTIONS_TABLE_STRING,
946 .scope = OPTIONS_TABLE_WINDOW,
947 .default_str = "bg=magenta,fg=black",
948 .flags = OPTIONS_TABLE_IS_STYLE,
949 .separator = ",",
950 .text = "Style of the current search match in copy mode."
953 { .name = "copy-mode-mark-style",
954 .type = OPTIONS_TABLE_STRING,
955 .scope = OPTIONS_TABLE_WINDOW,
956 .default_str = "bg=red,fg=black",
957 .flags = OPTIONS_TABLE_IS_STYLE,
958 .separator = ",",
959 .text = "Style of the marked line in copy mode."
962 { .name = "fill-character",
963 .type = OPTIONS_TABLE_STRING,
964 .scope = OPTIONS_TABLE_WINDOW,
965 .default_str = "",
966 .text = "Character used to fill unused parts of window."
969 { .name = "main-pane-height",
970 .type = OPTIONS_TABLE_STRING,
971 .scope = OPTIONS_TABLE_WINDOW,
972 .default_str = "24",
973 .text = "Height of the main pane in the 'main-horizontal' layout. "
974 "This may be a percentage, for example '10%'."
977 { .name = "main-pane-width",
978 .type = OPTIONS_TABLE_STRING,
979 .scope = OPTIONS_TABLE_WINDOW,
980 .default_str = "80",
981 .text = "Width of the main pane in the 'main-vertical' layout. "
982 "This may be a percentage, for example '10%'."
985 { .name = "mode-keys",
986 .type = OPTIONS_TABLE_CHOICE,
987 .scope = OPTIONS_TABLE_WINDOW,
988 .choices = options_table_mode_keys_list,
989 .default_num = MODEKEY_EMACS,
990 .text = "Key set used in copy mode."
993 { .name = "mode-style",
994 .type = OPTIONS_TABLE_STRING,
995 .scope = OPTIONS_TABLE_WINDOW,
996 .flags = OPTIONS_TABLE_IS_STYLE,
997 .default_str = "bg=yellow,fg=black",
998 .separator = ",",
999 .text = "Style of indicators and highlighting in modes."
1002 { .name = "monitor-activity",
1003 .type = OPTIONS_TABLE_FLAG,
1004 .scope = OPTIONS_TABLE_WINDOW,
1005 .default_num = 0,
1006 .text = "Whether an alert is triggered by activity."
1009 { .name = "monitor-bell",
1010 .type = OPTIONS_TABLE_FLAG,
1011 .scope = OPTIONS_TABLE_WINDOW,
1012 .default_num = 1,
1013 .text = "Whether an alert is triggered by a bell."
1016 { .name = "monitor-silence",
1017 .type = OPTIONS_TABLE_NUMBER,
1018 .scope = OPTIONS_TABLE_WINDOW,
1019 .minimum = 0,
1020 .maximum = INT_MAX,
1021 .default_num = 0,
1022 .text = "Time after which an alert is triggered by silence. "
1023 "Zero means no alert."
1027 { .name = "other-pane-height",
1028 .type = OPTIONS_TABLE_STRING,
1029 .scope = OPTIONS_TABLE_WINDOW,
1030 .default_str = "0",
1031 .text = "Height of the other panes in the 'main-horizontal' layout. "
1032 "This may be a percentage, for example '10%'."
1035 { .name = "other-pane-width",
1036 .type = OPTIONS_TABLE_STRING,
1037 .scope = OPTIONS_TABLE_WINDOW,
1038 .default_str = "0",
1039 .text = "Height of the other panes in the 'main-vertical' layout. "
1040 "This may be a percentage, for example '10%'."
1043 { .name = "pane-active-border-style",
1044 .type = OPTIONS_TABLE_STRING,
1045 .scope = OPTIONS_TABLE_WINDOW,
1046 .default_str = "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}",
1047 .flags = OPTIONS_TABLE_IS_STYLE,
1048 .separator = ",",
1049 .text = "Style of the active pane border."
1052 { .name = "pane-base-index",
1053 .type = OPTIONS_TABLE_NUMBER,
1054 .scope = OPTIONS_TABLE_WINDOW,
1055 .minimum = 0,
1056 .maximum = USHRT_MAX,
1057 .default_num = 0,
1058 .text = "Index of the first pane in each window."
1061 { .name = "pane-border-format",
1062 .type = OPTIONS_TABLE_STRING,
1063 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1064 .default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] "
1065 "\"#{pane_title}\"",
1066 .text = "Format of text in the pane status lines."
1069 { .name = "pane-border-indicators",
1070 .type = OPTIONS_TABLE_CHOICE,
1071 .scope = OPTIONS_TABLE_WINDOW,
1072 .choices = options_table_pane_border_indicators_list,
1073 .default_num = PANE_BORDER_COLOUR,
1074 .text = "Whether to indicate the active pane by colouring border or "
1075 "displaying arrow markers."
1078 { .name = "pane-border-lines",
1079 .type = OPTIONS_TABLE_CHOICE,
1080 .scope = OPTIONS_TABLE_WINDOW,
1081 .choices = options_table_pane_border_lines_list,
1082 .default_num = PANE_LINES_SINGLE,
1083 .text = "Type of characters used to draw pane border lines. Some of "
1084 "these are only supported on terminals with UTF-8 support."
1087 { .name = "pane-border-status",
1088 .type = OPTIONS_TABLE_CHOICE,
1089 .scope = OPTIONS_TABLE_WINDOW,
1090 .choices = options_table_pane_status_list,
1091 .default_num = PANE_STATUS_OFF,
1092 .text = "Position of the pane status lines."
1095 { .name = "pane-border-style",
1096 .type = OPTIONS_TABLE_STRING,
1097 .scope = OPTIONS_TABLE_WINDOW,
1098 .default_str = "default",
1099 .flags = OPTIONS_TABLE_IS_STYLE,
1100 .separator = ",",
1101 .text = "Style of the pane status lines."
1104 { .name = "pane-colours",
1105 .type = OPTIONS_TABLE_COLOUR,
1106 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1107 .default_str = "",
1108 .flags = OPTIONS_TABLE_IS_ARRAY,
1109 .text = "The default colour palette for colours zero to 255."
1112 { .name = "popup-style",
1113 .type = OPTIONS_TABLE_STRING,
1114 .scope = OPTIONS_TABLE_WINDOW,
1115 .default_str = "default",
1116 .flags = OPTIONS_TABLE_IS_STYLE,
1117 .separator = ",",
1118 .text = "Default style of popups."
1121 { .name = "popup-border-style",
1122 .type = OPTIONS_TABLE_STRING,
1123 .scope = OPTIONS_TABLE_WINDOW,
1124 .default_str = "default",
1125 .flags = OPTIONS_TABLE_IS_STYLE,
1126 .separator = ",",
1127 .text = "Default style of popup borders."
1130 { .name = "popup-border-lines",
1131 .type = OPTIONS_TABLE_CHOICE,
1132 .scope = OPTIONS_TABLE_WINDOW,
1133 .choices = options_table_popup_border_lines_list,
1134 .default_num = BOX_LINES_SINGLE,
1135 .text = "Type of characters used to draw popup border lines. Some of "
1136 "these are only supported on terminals with UTF-8 support."
1139 { .name = "remain-on-exit",
1140 .type = OPTIONS_TABLE_CHOICE,
1141 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1142 .choices = options_table_remain_on_exit_list,
1143 .default_num = 0,
1144 .text = "Whether panes should remain ('on') or be automatically "
1145 "killed ('off' or 'failed') when the program inside exits."
1148 { .name = "remain-on-exit-format",
1149 .type = OPTIONS_TABLE_STRING,
1150 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1151 .default_str = "Pane is dead ("
1152 "#{?#{!=:#{pane_dead_status},},"
1153 "status #{pane_dead_status},}"
1154 "#{?#{!=:#{pane_dead_signal},},"
1155 "signal #{pane_dead_signal},}, "
1156 "#{t:pane_dead_time})",
1157 .text = "Message shown after the program in a pane has exited, if "
1158 "remain-on-exit is enabled."
1161 { .name = "scroll-on-clear",
1162 .type = OPTIONS_TABLE_FLAG,
1163 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1164 .default_num = 1,
1165 .text = "Whether the contents of the screen should be scrolled into"
1166 "history when clearing the whole screen."
1169 { .name = "synchronize-panes",
1170 .type = OPTIONS_TABLE_FLAG,
1171 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1172 .default_num = 0,
1173 .text = "Whether typing should be sent to all panes simultaneously."
1176 { .name = "window-active-style",
1177 .type = OPTIONS_TABLE_STRING,
1178 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1179 .default_str = "default",
1180 .flags = OPTIONS_TABLE_IS_STYLE,
1181 .separator = ",",
1182 .text = "Default style of the active pane."
1185 { .name = "window-size",
1186 .type = OPTIONS_TABLE_CHOICE,
1187 .scope = OPTIONS_TABLE_WINDOW,
1188 .choices = options_table_window_size_list,
1189 .default_num = WINDOW_SIZE_LATEST,
1190 .text = "How window size is calculated. "
1191 "'latest' uses the size of the most recently used client, "
1192 "'largest' the largest client, 'smallest' the smallest "
1193 "client and 'manual' a size set by the 'resize-window' "
1194 "command."
1197 { .name = "window-style",
1198 .type = OPTIONS_TABLE_STRING,
1199 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
1200 .default_str = "default",
1201 .flags = OPTIONS_TABLE_IS_STYLE,
1202 .separator = ",",
1203 .text = "Default style of panes that are not the active pane."
1206 { .name = "window-status-activity-style",
1207 .type = OPTIONS_TABLE_STRING,
1208 .scope = OPTIONS_TABLE_WINDOW,
1209 .default_str = "reverse",
1210 .flags = OPTIONS_TABLE_IS_STYLE,
1211 .separator = ",",
1212 .text = "Style of windows in the status line with an activity alert."
1215 { .name = "window-status-bell-style",
1216 .type = OPTIONS_TABLE_STRING,
1217 .scope = OPTIONS_TABLE_WINDOW,
1218 .default_str = "reverse",
1219 .flags = OPTIONS_TABLE_IS_STYLE,
1220 .separator = ",",
1221 .text = "Style of windows in the status line with a bell alert."
1224 { .name = "window-status-current-format",
1225 .type = OPTIONS_TABLE_STRING,
1226 .scope = OPTIONS_TABLE_WINDOW,
1227 .default_str = "#I:#W#{?window_flags,#{window_flags}, }",
1228 .text = "Format of the current window in the status line."
1231 { .name = "window-status-current-style",
1232 .type = OPTIONS_TABLE_STRING,
1233 .scope = OPTIONS_TABLE_WINDOW,
1234 .default_str = "default",
1235 .flags = OPTIONS_TABLE_IS_STYLE,
1236 .separator = ",",
1237 .text = "Style of the current window in the status line."
1240 { .name = "window-status-format",
1241 .type = OPTIONS_TABLE_STRING,
1242 .scope = OPTIONS_TABLE_WINDOW,
1243 .default_str = "#I:#W#{?window_flags,#{window_flags}, }",
1244 .text = "Format of windows in the status line, except the current "
1245 "window."
1248 { .name = "window-status-last-style",
1249 .type = OPTIONS_TABLE_STRING,
1250 .scope = OPTIONS_TABLE_WINDOW,
1251 .default_str = "default",
1252 .flags = OPTIONS_TABLE_IS_STYLE,
1253 .separator = ",",
1254 .text = "Style of the last window in the status line."
1257 { .name = "window-status-separator",
1258 .type = OPTIONS_TABLE_STRING,
1259 .scope = OPTIONS_TABLE_WINDOW,
1260 .default_str = " ",
1261 .text = "Separator between windows in the status line."
1264 { .name = "window-status-style",
1265 .type = OPTIONS_TABLE_STRING,
1266 .scope = OPTIONS_TABLE_WINDOW,
1267 .default_str = "default",
1268 .flags = OPTIONS_TABLE_IS_STYLE,
1269 .separator = ",",
1270 .text = "Style of windows in the status line, except the current and "
1271 "last windows."
1274 { .name = "wrap-search",
1275 .type = OPTIONS_TABLE_FLAG,
1276 .scope = OPTIONS_TABLE_WINDOW,
1277 .default_num = 1,
1278 .text = "Whether searching in copy mode should wrap at the top or "
1279 "bottom."
1282 { .name = "xterm-keys", /* no longer used */
1283 .type = OPTIONS_TABLE_FLAG,
1284 .scope = OPTIONS_TABLE_WINDOW,
1285 .default_num = 1,
1286 .text = "Whether xterm-style function key sequences should be sent. "
1287 "This option is no longer used."
1290 /* Hook options. */
1291 OPTIONS_TABLE_HOOK("after-bind-key", ""),
1292 OPTIONS_TABLE_HOOK("after-capture-pane", ""),
1293 OPTIONS_TABLE_HOOK("after-copy-mode", ""),
1294 OPTIONS_TABLE_HOOK("after-display-message", ""),
1295 OPTIONS_TABLE_HOOK("after-display-panes", ""),
1296 OPTIONS_TABLE_HOOK("after-kill-pane", ""),
1297 OPTIONS_TABLE_HOOK("after-list-buffers", ""),
1298 OPTIONS_TABLE_HOOK("after-list-clients", ""),
1299 OPTIONS_TABLE_HOOK("after-list-keys", ""),
1300 OPTIONS_TABLE_HOOK("after-list-panes", ""),
1301 OPTIONS_TABLE_HOOK("after-list-sessions", ""),
1302 OPTIONS_TABLE_HOOK("after-list-windows", ""),
1303 OPTIONS_TABLE_HOOK("after-load-buffer", ""),
1304 OPTIONS_TABLE_HOOK("after-lock-server", ""),
1305 OPTIONS_TABLE_HOOK("after-new-session", ""),
1306 OPTIONS_TABLE_HOOK("after-new-window", ""),
1307 OPTIONS_TABLE_HOOK("after-paste-buffer", ""),
1308 OPTIONS_TABLE_HOOK("after-pipe-pane", ""),
1309 OPTIONS_TABLE_HOOK("after-queue", ""),
1310 OPTIONS_TABLE_HOOK("after-refresh-client", ""),
1311 OPTIONS_TABLE_HOOK("after-rename-session", ""),
1312 OPTIONS_TABLE_HOOK("after-rename-window", ""),
1313 OPTIONS_TABLE_HOOK("after-resize-pane", ""),
1314 OPTIONS_TABLE_HOOK("after-resize-window", ""),
1315 OPTIONS_TABLE_HOOK("after-save-buffer", ""),
1316 OPTIONS_TABLE_HOOK("after-select-layout", ""),
1317 OPTIONS_TABLE_HOOK("after-select-pane", ""),
1318 OPTIONS_TABLE_HOOK("after-select-window", ""),
1319 OPTIONS_TABLE_HOOK("after-send-keys", ""),
1320 OPTIONS_TABLE_HOOK("after-set-buffer", ""),
1321 OPTIONS_TABLE_HOOK("after-set-environment", ""),
1322 OPTIONS_TABLE_HOOK("after-set-hook", ""),
1323 OPTIONS_TABLE_HOOK("after-set-option", ""),
1324 OPTIONS_TABLE_HOOK("after-show-environment", ""),
1325 OPTIONS_TABLE_HOOK("after-show-messages", ""),
1326 OPTIONS_TABLE_HOOK("after-show-options", ""),
1327 OPTIONS_TABLE_HOOK("after-split-window", ""),
1328 OPTIONS_TABLE_HOOK("after-unbind-key", ""),
1329 OPTIONS_TABLE_HOOK("alert-activity", ""),
1330 OPTIONS_TABLE_HOOK("alert-bell", ""),
1331 OPTIONS_TABLE_HOOK("alert-silence", ""),
1332 OPTIONS_TABLE_HOOK("client-active", ""),
1333 OPTIONS_TABLE_HOOK("client-attached", ""),
1334 OPTIONS_TABLE_HOOK("client-detached", ""),
1335 OPTIONS_TABLE_HOOK("client-focus-in", ""),
1336 OPTIONS_TABLE_HOOK("client-focus-out", ""),
1337 OPTIONS_TABLE_HOOK("client-resized", ""),
1338 OPTIONS_TABLE_HOOK("client-session-changed", ""),
1339 OPTIONS_TABLE_HOOK("command-error", ""),
1340 OPTIONS_TABLE_PANE_HOOK("pane-died", ""),
1341 OPTIONS_TABLE_PANE_HOOK("pane-exited", ""),
1342 OPTIONS_TABLE_PANE_HOOK("pane-focus-in", ""),
1343 OPTIONS_TABLE_PANE_HOOK("pane-focus-out", ""),
1344 OPTIONS_TABLE_PANE_HOOK("pane-mode-changed", ""),
1345 OPTIONS_TABLE_PANE_HOOK("pane-set-clipboard", ""),
1346 OPTIONS_TABLE_PANE_HOOK("pane-title-changed", ""),
1347 OPTIONS_TABLE_HOOK("session-closed", ""),
1348 OPTIONS_TABLE_HOOK("session-created", ""),
1349 OPTIONS_TABLE_HOOK("session-renamed", ""),
1350 OPTIONS_TABLE_HOOK("session-window-changed", ""),
1351 OPTIONS_TABLE_WINDOW_HOOK("window-layout-changed", ""),
1352 OPTIONS_TABLE_HOOK("window-linked", ""),
1353 OPTIONS_TABLE_WINDOW_HOOK("window-pane-changed", ""),
1354 OPTIONS_TABLE_WINDOW_HOOK("window-renamed", ""),
1355 OPTIONS_TABLE_WINDOW_HOOK("window-resized", ""),
1356 OPTIONS_TABLE_HOOK("window-unlinked", ""),
1358 { .name = NULL }