1 /* $OpenBSD$ */ 2 3 /* 4 * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> 5 * 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. 9 * 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. 17 */ 18 19 #include <sys/types.h> 20 21 #include <string.h> 22 23 #include "tmux.h" 24 25 /* 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. 32 */ 33 34 /* Choice option type lists. */ 35 static const char *options_table_mode_keys_list[] = { 36 "emacs", "vi", NULL 37 }; 38 static const char *options_table_clock_mode_style_list[] = { 39 "12", "24", NULL 40 }; 41 static const char *options_table_status_list[] = { 42 "off", "on", "2", "3", "4", "5", NULL 43 }; 44 static const char *options_table_status_keys_list[] = { 45 "emacs", "vi", NULL 46 }; 47 static const char *options_table_status_justify_list[] = { 48 "left", "centre", "right", "absolute-centre", NULL 49 }; 50 static const char *options_table_status_position_list[] = { 51 "top", "bottom", NULL 52 }; 53 static const char *options_table_bell_action_list[] = { 54 "none", "any", "current", "other", NULL 55 }; 56 static const char *options_table_visual_bell_list[] = { 57 "off", "on", "both", NULL 58 }; 59 static const char *options_table_cursor_style_list[] = { 60 "default", "blinking-block", "block", "blinking-underline", "underline", 61 "blinking-bar", "bar", NULL 62 }; 63 static const char *options_table_pane_status_list[] = { 64 "off", "top", "bottom", NULL 65 }; 66 static const char *options_table_pane_border_indicators_list[] = { 67 "off", "colour", "arrows", "both", NULL 68 }; 69 static const char *options_table_pane_border_lines_list[] = { 70 "single", "double", "heavy", "simple", "number", NULL 71 }; 72 static const char *options_table_popup_border_lines_list[] = { 73 "single", "double", "heavy", "simple", "rounded", "padded", "none", NULL 74 }; 75 static const char *options_table_set_clipboard_list[] = { 76 "off", "external", "on", NULL 77 }; 78 static const char *options_table_window_size_list[] = { 79 "largest", "smallest", "manual", "latest", NULL 80 }; 81 static const char *options_table_remain_on_exit_list[] = { 82 "off", "on", "failed", NULL 83 }; 84 static const char *options_table_detach_on_destroy_list[] = { 85 "off", "on", "no-detached", NULL 86 }; 87 static const char *options_table_extended_keys_list[] = { 88 "off", "on", "always", NULL 89 }; 90 91 /* Status line format. */ 92 #define OPTIONS_TABLE_STATUS_FORMAT1 \ 93 "#[align=left range=left #{E:status-left-style}]" \ 94 "#[push-default]" \ 95 "#{T;=/#{status-left-length}:status-left}" \ 96 "#[pop-default]" \ 97 "#[norange default]" \ 98 "#[list=on align=#{status-justify}]" \ 99 "#[list=left-marker]<#[list=right-marker]>#[list=on]" \ 100 "#{W:" \ 101 "#[range=window|#{window_index} " \ 102 "#{E:window-status-style}" \ 103 "#{?#{&&:#{window_last_flag}," \ 104 "#{!=:#{E:window-status-last-style},default}}, " \ 105 "#{E:window-status-last-style}," \ 106 "}" \ 107 "#{?#{&&:#{window_bell_flag}," \ 108 "#{!=:#{E:window-status-bell-style},default}}, " \ 109 "#{E:window-status-bell-style}," \ 110 "#{?#{&&:#{||:#{window_activity_flag}," \ 111 "#{window_silence_flag}}," \ 112 "#{!=:" \ 113 "#{E:window-status-activity-style}," \ 114 "default}}, " \ 115 "#{E:window-status-activity-style}," \ 116 "}" \ 117 "}" \ 118 "]" \ 119 "#[push-default]" \ 120 "#{T:window-status-format}" \ 121 "#[pop-default]" \ 122 "#[norange default]" \ 123 "#{?window_end_flag,,#{window-status-separator}}" \ 124 "," \ 125 "#[range=window|#{window_index} list=focus " \ 126 "#{?#{!=:#{E:window-status-current-style},default}," \ 127 "#{E:window-status-current-style}," \ 128 "#{E:window-status-style}" \ 129 "}" \ 130 "#{?#{&&:#{window_last_flag}," \ 131 "#{!=:#{E:window-status-last-style},default}}, " \ 132 "#{E:window-status-last-style}," \ 133 "}" \ 134 "#{?#{&&:#{window_bell_flag}," \ 135 "#{!=:#{E:window-status-bell-style},default}}, " \ 136 "#{E:window-status-bell-style}," \ 137 "#{?#{&&:#{||:#{window_activity_flag}," \ 138 "#{window_silence_flag}}," \ 139 "#{!=:" \ 140 "#{E:window-status-activity-style}," \ 141 "default}}, " \ 142 "#{E:window-status-activity-style}," \ 143 "}" \ 144 "}" \ 145 "]" \ 146 "#[push-default]" \ 147 "#{T:window-status-current-format}" \ 148 "#[pop-default]" \ 149 "#[norange list=on default]" \ 150 "#{?window_end_flag,,#{window-status-separator}}" \ 151 "}" \ 152 "#[nolist align=right range=right #{E:status-right-style}]" \ 153 "#[push-default]" \ 154 "#{T;=/#{status-right-length}:status-right}" \ 155 "#[pop-default]" \ 156 "#[norange default]" 157 #define OPTIONS_TABLE_STATUS_FORMAT2 \ 158 "#[align=centre]#{P:#{?pane_active,#[reverse],}" \ 159 "#{pane_index}[#{pane_width}x#{pane_height}]#[default] }" 160 static const char *options_table_status_format_default[] = { 161 OPTIONS_TABLE_STATUS_FORMAT1, OPTIONS_TABLE_STATUS_FORMAT2, NULL 162 }; 163 164 /* Helpers for hook options. */ 165 #define OPTIONS_TABLE_HOOK(hook_name, default_value) \ 166 { .name = hook_name, \ 167 .type = OPTIONS_TABLE_COMMAND, \ 168 .scope = OPTIONS_TABLE_SESSION, \ 169 .flags = OPTIONS_TABLE_IS_ARRAY|OPTIONS_TABLE_IS_HOOK, \ 170 .default_str = default_value, \ 171 .separator = "" \ 172 } 173 174 #define OPTIONS_TABLE_PANE_HOOK(hook_name, default_value) \ 175 { .name = hook_name, \ 176 .type = OPTIONS_TABLE_COMMAND, \ 177 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, \ 178 .flags = OPTIONS_TABLE_IS_ARRAY|OPTIONS_TABLE_IS_HOOK, \ 179 .default_str = default_value, \ 180 .separator = "" \ 181 } 182 183 #define OPTIONS_TABLE_WINDOW_HOOK(hook_name, default_value) \ 184 { .name = hook_name, \ 185 .type = OPTIONS_TABLE_COMMAND, \ 186 .scope = OPTIONS_TABLE_WINDOW, \ 187 .flags = OPTIONS_TABLE_IS_ARRAY|OPTIONS_TABLE_IS_HOOK, \ 188 .default_str = default_value, \ 189 .separator = "" \ 190 } 191 192 /* Map of name conversions. */ 193 const struct options_name_map options_other_names[] = { 194 { "display-panes-color", "display-panes-colour" }, 195 { "display-panes-active-color", "display-panes-active-colour" }, 196 { "clock-mode-color", "clock-mode-colour" }, 197 { "cursor-color", "cursor-colour" }, 198 { "pane-colors", "pane-colours" }, 199 { NULL, NULL } 200 }; 201 202 /* Top-level options. */ 203 const struct options_table_entry options_table[] = { 204 /* Server options. */ 205 { .name = "backspace", 206 .type = OPTIONS_TABLE_KEY, 207 .scope = OPTIONS_TABLE_SERVER, 208 .default_num = '\177', 209 .text = "The key to send for backspace." 210 }, 211 212 { .name = "buffer-limit", 213 .type = OPTIONS_TABLE_NUMBER, 214 .scope = OPTIONS_TABLE_SERVER, 215 .minimum = 1, 216 .maximum = INT_MAX, 217 .default_num = 50, 218 .text = "The maximum number of automatic buffers. " 219 "When this is reached, the oldest buffer is deleted." 220 }, 221 222 { .name = "command-alias", 223 .type = OPTIONS_TABLE_STRING, 224 .scope = OPTIONS_TABLE_SERVER, 225 .flags = OPTIONS_TABLE_IS_ARRAY, 226 .default_str = "split-pane=split-window," 227 "splitp=split-window," 228 "server-info=show-messages -JT," 229 "info=show-messages -JT," 230 "choose-window=choose-tree -w," 231 "choose-session=choose-tree -s", 232 .separator = ",", 233 .text = "Array of command aliases. " 234 "Each entry is an alias and a command separated by '='." 235 }, 236 237 { .name = "copy-command", 238 .type = OPTIONS_TABLE_STRING, 239 .scope = OPTIONS_TABLE_SERVER, 240 .default_str = "", 241 .text = "Shell command run when text is copied. " 242 "If empty, no command is run." 243 }, 244 245 { .name = "cursor-colour", 246 .type = OPTIONS_TABLE_COLOUR, 247 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 248 .default_num = -1, 249 .text = "Colour of the cursor." 250 }, 251 252 { .name = "cursor-style", 253 .type = OPTIONS_TABLE_CHOICE, 254 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 255 .choices = options_table_cursor_style_list, 256 .default_num = 0, 257 .text = "Style of the cursor." 258 }, 259 260 { .name = "default-terminal", 261 .type = OPTIONS_TABLE_STRING, 262 .scope = OPTIONS_TABLE_SERVER, 263 .default_str = TMUX_TERM, 264 .text = "Default for the 'TERM' environment variable." 265 }, 266 267 { .name = "editor", 268 .type = OPTIONS_TABLE_STRING, 269 .scope = OPTIONS_TABLE_SERVER, 270 .default_str = _PATH_VI, 271 .text = "Editor run to edit files." 272 }, 273 274 { .name = "escape-time", 275 .type = OPTIONS_TABLE_NUMBER, 276 .scope = OPTIONS_TABLE_SERVER, 277 .minimum = 0, 278 .maximum = INT_MAX, 279 .default_num = 500, 280 .unit = "milliseconds", 281 .text = "Time to wait before assuming a key is Escape." 282 }, 283 284 { .name = "exit-empty", 285 .type = OPTIONS_TABLE_FLAG, 286 .scope = OPTIONS_TABLE_SERVER, 287 .default_num = 1, 288 .text = "Whether the server should exit if there are no sessions." 289 }, 290 291 { .name = "exit-unattached", 292 .type = OPTIONS_TABLE_FLAG, 293 .scope = OPTIONS_TABLE_SERVER, 294 .default_num = 0, 295 .text = "Whether the server should exit if there are no attached " 296 "clients." 297 }, 298 299 { .name = "extended-keys", 300 .type = OPTIONS_TABLE_CHOICE, 301 .scope = OPTIONS_TABLE_SERVER, 302 .choices = options_table_extended_keys_list, 303 .default_num = 0, 304 .text = "Whether to request extended key sequences from terminals " 305 "that support it." 306 }, 307 308 { .name = "focus-events", 309 .type = OPTIONS_TABLE_FLAG, 310 .scope = OPTIONS_TABLE_SERVER, 311 .default_num = 0, 312 .text = "Whether to send focus events to applications." 313 }, 314 315 { .name = "history-file", 316 .type = OPTIONS_TABLE_STRING, 317 .scope = OPTIONS_TABLE_SERVER, 318 .default_str = "", 319 .text = "Location of the command prompt history file. " 320 "Empty does not write a history file." 321 }, 322 323 { .name = "message-limit", 324 .type = OPTIONS_TABLE_NUMBER, 325 .scope = OPTIONS_TABLE_SERVER, 326 .minimum = 0, 327 .maximum = INT_MAX, 328 .default_num = 1000, 329 .text = "Maximum number of server messages to keep." 330 }, 331 332 { .name = "prompt-history-limit", 333 .type = OPTIONS_TABLE_NUMBER, 334 .scope = OPTIONS_TABLE_SERVER, 335 .minimum = 0, 336 .maximum = INT_MAX, 337 .default_num = 100, 338 .text = "Maximum number of commands to keep in history." 339 }, 340 341 { .name = "set-clipboard", 342 .type = OPTIONS_TABLE_CHOICE, 343 .scope = OPTIONS_TABLE_SERVER, 344 .choices = options_table_set_clipboard_list, 345 .default_num = 1, 346 .text = "Whether to attempt to set the system clipboard ('on' or " 347 "'external') and whether to allow applications to create " 348 "paste buffers with an escape sequence ('on' only)." 349 }, 350 351 { .name = "terminal-overrides", 352 .type = OPTIONS_TABLE_STRING, 353 .scope = OPTIONS_TABLE_SERVER, 354 .flags = OPTIONS_TABLE_IS_ARRAY, 355 .default_str = "", 356 .separator = ",", 357 .text = "List of terminal capabilities overrides." 358 }, 359 360 { .name = "terminal-features", 361 .type = OPTIONS_TABLE_STRING, 362 .scope = OPTIONS_TABLE_SERVER, 363 .flags = OPTIONS_TABLE_IS_ARRAY, 364 .default_str = "xterm*:clipboard:ccolour:cstyle:focus:title," 365 "screen*:title", 366 .separator = ",", 367 .text = "List of terminal features, used if they cannot be " 368 "automatically detected." 369 }, 370 371 { .name = "user-keys", 372 .type = OPTIONS_TABLE_STRING, 373 .scope = OPTIONS_TABLE_SERVER, 374 .flags = OPTIONS_TABLE_IS_ARRAY, 375 .default_str = "", 376 .separator = ",", 377 .text = "User key assignments. " 378 "Each sequence in the list is translated into a key: " 379 "'User0', 'User1' and so on." 380 }, 381 382 /* Session options. */ 383 { .name = "activity-action", 384 .type = OPTIONS_TABLE_CHOICE, 385 .scope = OPTIONS_TABLE_SESSION, 386 .choices = options_table_bell_action_list, 387 .default_num = ALERT_OTHER, 388 .text = "Action to take on an activity alert." 389 }, 390 391 { .name = "assume-paste-time", 392 .type = OPTIONS_TABLE_NUMBER, 393 .scope = OPTIONS_TABLE_SESSION, 394 .minimum = 0, 395 .maximum = INT_MAX, 396 .default_num = 1, 397 .unit = "milliseconds", 398 .text = "Maximum time between input to assume it is pasting rather " 399 "than typing." 400 }, 401 402 { .name = "base-index", 403 .type = OPTIONS_TABLE_NUMBER, 404 .scope = OPTIONS_TABLE_SESSION, 405 .minimum = 0, 406 .maximum = INT_MAX, 407 .default_num = 0, 408 .text = "Default index of the first window in each session." 409 }, 410 411 { .name = "bell-action", 412 .type = OPTIONS_TABLE_CHOICE, 413 .scope = OPTIONS_TABLE_SESSION, 414 .choices = options_table_bell_action_list, 415 .default_num = ALERT_ANY, 416 .text = "Action to take on a bell alert." 417 }, 418 419 { .name = "default-command", 420 .type = OPTIONS_TABLE_STRING, 421 .scope = OPTIONS_TABLE_SESSION, 422 .default_str = "", 423 .text = "Default command to run in new panes. If empty, a shell is " 424 "started." 425 }, 426 427 { .name = "default-shell", 428 .type = OPTIONS_TABLE_STRING, 429 .scope = OPTIONS_TABLE_SESSION, 430 .default_str = _PATH_BSHELL, 431 .text = "Location of default shell." 432 }, 433 434 { .name = "default-size", 435 .type = OPTIONS_TABLE_STRING, 436 .scope = OPTIONS_TABLE_SESSION, 437 .pattern = "[0-9]*x[0-9]*", 438 .default_str = "80x24", 439 .text = "Initial size of new sessions." 440 }, 441 442 { .name = "destroy-unattached", 443 .type = OPTIONS_TABLE_FLAG, 444 .scope = OPTIONS_TABLE_SESSION, 445 .default_num = 0, 446 .text = "Whether to destroy sessions when they have no attached " 447 "clients." 448 }, 449 450 { .name = "detach-on-destroy", 451 .type = OPTIONS_TABLE_CHOICE, 452 .scope = OPTIONS_TABLE_SESSION, 453 .choices = options_table_detach_on_destroy_list, 454 .default_num = 1, 455 .text = "Whether to detach when a session is destroyed, or switch " 456 "the client to another session if any exist." 457 }, 458 459 { .name = "display-panes-active-colour", 460 .type = OPTIONS_TABLE_COLOUR, 461 .scope = OPTIONS_TABLE_SESSION, 462 .default_num = 1, 463 .text = "Colour of the active pane for 'display-panes'." 464 }, 465 466 { .name = "display-panes-colour", 467 .type = OPTIONS_TABLE_COLOUR, 468 .scope = OPTIONS_TABLE_SESSION, 469 .default_num = 4, 470 .text = "Colour of not active panes for 'display-panes'." 471 }, 472 473 { .name = "display-panes-time", 474 .type = OPTIONS_TABLE_NUMBER, 475 .scope = OPTIONS_TABLE_SESSION, 476 .minimum = 1, 477 .maximum = INT_MAX, 478 .default_num = 1000, 479 .unit = "milliseconds", 480 .text = "Time for which 'display-panes' should show pane numbers." 481 }, 482 483 { .name = "display-time", 484 .type = OPTIONS_TABLE_NUMBER, 485 .scope = OPTIONS_TABLE_SESSION, 486 .minimum = 0, 487 .maximum = INT_MAX, 488 .default_num = 750, 489 .unit = "milliseconds", 490 .text = "Time for which status line messages should appear." 491 }, 492 493 { .name = "history-limit", 494 .type = OPTIONS_TABLE_NUMBER, 495 .scope = OPTIONS_TABLE_SESSION, 496 .minimum = 0, 497 .maximum = INT_MAX, 498 .default_num = 2000, 499 .unit = "lines", 500 .text = "Maximum number of lines to keep in the history for each " 501 "pane. " 502 "If changed, the new value applies only to new panes." 503 }, 504 505 { .name = "key-table", 506 .type = OPTIONS_TABLE_STRING, 507 .scope = OPTIONS_TABLE_SESSION, 508 .default_str = "root", 509 .text = "Default key table. " 510 "Key presses are first looked up in this table." 511 }, 512 513 { .name = "lock-after-time", 514 .type = OPTIONS_TABLE_NUMBER, 515 .scope = OPTIONS_TABLE_SESSION, 516 .minimum = 0, 517 .maximum = INT_MAX, 518 .default_num = 0, 519 .unit = "seconds", 520 .text = "Time after which a client is locked if not used." 521 }, 522 523 { .name = "lock-command", 524 .type = OPTIONS_TABLE_STRING, 525 .scope = OPTIONS_TABLE_SESSION, 526 .default_str = "lock -np", 527 .text = "Shell command to run to lock a client." 528 }, 529 530 { .name = "message-command-style", 531 .type = OPTIONS_TABLE_STRING, 532 .scope = OPTIONS_TABLE_SESSION, 533 .default_str = "bg=black,fg=yellow", 534 .flags = OPTIONS_TABLE_IS_STYLE, 535 .separator = ",", 536 .text = "Style of the command prompt when in command mode, if " 537 "'mode-keys' is set to 'vi'." 538 }, 539 540 { .name = "message-style", 541 .type = OPTIONS_TABLE_STRING, 542 .scope = OPTIONS_TABLE_SESSION, 543 .default_str = "bg=yellow,fg=black", 544 .flags = OPTIONS_TABLE_IS_STYLE, 545 .separator = ",", 546 .text = "Style of the command prompt." 547 }, 548 549 { .name = "mouse", 550 .type = OPTIONS_TABLE_FLAG, 551 .scope = OPTIONS_TABLE_SESSION, 552 .default_num = 0, 553 .text = "Whether the mouse is recognised and mouse key bindings are " 554 "executed. " 555 "Applications inside panes can use the mouse even when 'off'." 556 }, 557 558 { .name = "prefix", 559 .type = OPTIONS_TABLE_KEY, 560 .scope = OPTIONS_TABLE_SESSION, 561 .default_num = '\002', 562 .text = "The prefix key." 563 }, 564 565 { .name = "prefix2", 566 .type = OPTIONS_TABLE_KEY, 567 .scope = OPTIONS_TABLE_SESSION, 568 .default_num = KEYC_NONE, 569 .text = "A second prefix key." 570 }, 571 572 { .name = "renumber-windows", 573 .type = OPTIONS_TABLE_FLAG, 574 .scope = OPTIONS_TABLE_SESSION, 575 .default_num = 0, 576 .text = "Whether windows are automatically renumbered rather than " 577 "leaving gaps." 578 }, 579 580 { .name = "repeat-time", 581 .type = OPTIONS_TABLE_NUMBER, 582 .scope = OPTIONS_TABLE_SESSION, 583 .minimum = 0, 584 .maximum = SHRT_MAX, 585 .default_num = 500, 586 .unit = "milliseconds", 587 .text = "Time to wait for a key binding to repeat, if it is bound " 588 "with the '-r' flag." 589 }, 590 591 { .name = "set-titles", 592 .type = OPTIONS_TABLE_FLAG, 593 .scope = OPTIONS_TABLE_SESSION, 594 .default_num = 0, 595 .text = "Whether to set the terminal title, if supported." 596 }, 597 598 { .name = "set-titles-string", 599 .type = OPTIONS_TABLE_STRING, 600 .scope = OPTIONS_TABLE_SESSION, 601 .default_str = "#S:#I:#W - \"#T\" #{session_alerts}", 602 .text = "Format of the terminal title to set." 603 }, 604 605 { .name = "silence-action", 606 .type = OPTIONS_TABLE_CHOICE, 607 .scope = OPTIONS_TABLE_SESSION, 608 .choices = options_table_bell_action_list, 609 .default_num = ALERT_OTHER, 610 .text = "Action to take on a silence alert." 611 }, 612 613 { .name = "status", 614 .type = OPTIONS_TABLE_CHOICE, 615 .scope = OPTIONS_TABLE_SESSION, 616 .choices = options_table_status_list, 617 .default_num = 1, 618 .text = "Number of lines in the status line." 619 }, 620 621 { .name = "status-bg", 622 .type = OPTIONS_TABLE_COLOUR, 623 .scope = OPTIONS_TABLE_SESSION, 624 .default_num = 8, 625 .text = "Background colour of the status line. This option is " 626 "deprecated, use 'status-style' instead." 627 }, 628 629 { .name = "status-fg", 630 .type = OPTIONS_TABLE_COLOUR, 631 .scope = OPTIONS_TABLE_SESSION, 632 .default_num = 8, 633 .text = "Foreground colour of the status line. This option is " 634 "deprecated, use 'status-style' instead." 635 }, 636 637 { .name = "status-format", 638 .type = OPTIONS_TABLE_STRING, 639 .scope = OPTIONS_TABLE_SESSION, 640 .flags = OPTIONS_TABLE_IS_ARRAY, 641 .default_arr = options_table_status_format_default, 642 .text = "Formats for the status lines. " 643 "Each array member is the format for one status line. " 644 "The default status line is made up of several components " 645 "which may be configured individually with other options such " 646 "as 'status-left'." 647 }, 648 649 { .name = "status-interval", 650 .type = OPTIONS_TABLE_NUMBER, 651 .scope = OPTIONS_TABLE_SESSION, 652 .minimum = 0, 653 .maximum = INT_MAX, 654 .default_num = 15, 655 .unit = "seconds", 656 .text = "Number of seconds between status line updates." 657 }, 658 659 { .name = "status-justify", 660 .type = OPTIONS_TABLE_CHOICE, 661 .scope = OPTIONS_TABLE_SESSION, 662 .choices = options_table_status_justify_list, 663 .default_num = 0, 664 .text = "Position of the window list in the status line." 665 }, 666 667 { .name = "status-keys", 668 .type = OPTIONS_TABLE_CHOICE, 669 .scope = OPTIONS_TABLE_SESSION, 670 .choices = options_table_status_keys_list, 671 .default_num = MODEKEY_EMACS, 672 .text = "Key set to use at the command prompt." 673 }, 674 675 { .name = "status-left", 676 .type = OPTIONS_TABLE_STRING, 677 .scope = OPTIONS_TABLE_SESSION, 678 .default_str = "[#{session_name}] ", 679 .text = "Contents of the left side of the status line." 680 }, 681 682 { .name = "status-left-length", 683 .type = OPTIONS_TABLE_NUMBER, 684 .scope = OPTIONS_TABLE_SESSION, 685 .minimum = 0, 686 .maximum = SHRT_MAX, 687 .default_num = 10, 688 .text = "Maximum width of the left side of the status line." 689 }, 690 691 { .name = "status-left-style", 692 .type = OPTIONS_TABLE_STRING, 693 .scope = OPTIONS_TABLE_SESSION, 694 .default_str = "default", 695 .flags = OPTIONS_TABLE_IS_STYLE, 696 .separator = ",", 697 .text = "Style of the left side of the status line." 698 }, 699 700 { .name = "status-position", 701 .type = OPTIONS_TABLE_CHOICE, 702 .scope = OPTIONS_TABLE_SESSION, 703 .choices = options_table_status_position_list, 704 .default_num = 1, 705 .text = "Position of the status line." 706 }, 707 708 { .name = "status-right", 709 .type = OPTIONS_TABLE_STRING, 710 .scope = OPTIONS_TABLE_SESSION, 711 .default_str = "#{?window_bigger," 712 "[#{window_offset_x}#,#{window_offset_y}] ,}" 713 "\"#{=21:pane_title}\" %H:%M %d-%b-%y", 714 .text = "Contents of the right side of the status line." 715 716 }, 717 718 { .name = "status-right-length", 719 .type = OPTIONS_TABLE_NUMBER, 720 .scope = OPTIONS_TABLE_SESSION, 721 .minimum = 0, 722 .maximum = SHRT_MAX, 723 .default_num = 40, 724 .text = "Maximum width of the right side of the status line." 725 }, 726 727 { .name = "status-right-style", 728 .type = OPTIONS_TABLE_STRING, 729 .scope = OPTIONS_TABLE_SESSION, 730 .default_str = "default", 731 .flags = OPTIONS_TABLE_IS_STYLE, 732 .separator = ",", 733 .text = "Style of the right side of the status line." 734 }, 735 736 { .name = "status-style", 737 .type = OPTIONS_TABLE_STRING, 738 .scope = OPTIONS_TABLE_SESSION, 739 .default_str = "bg=green,fg=black", 740 .flags = OPTIONS_TABLE_IS_STYLE, 741 .separator = ",", 742 .text = "Style of the status line." 743 }, 744 745 { .name = "update-environment", 746 .type = OPTIONS_TABLE_STRING, 747 .scope = OPTIONS_TABLE_SESSION, 748 .flags = OPTIONS_TABLE_IS_ARRAY, 749 .default_str = "DISPLAY KRB5CCNAME SSH_ASKPASS SSH_AUTH_SOCK " 750 "SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY", 751 .text = "List of environment variables to update in the session " 752 "environment when a client is attached." 753 }, 754 755 { .name = "visual-activity", 756 .type = OPTIONS_TABLE_CHOICE, 757 .scope = OPTIONS_TABLE_SESSION, 758 .choices = options_table_visual_bell_list, 759 .default_num = VISUAL_OFF, 760 .text = "How activity alerts should be shown: a message ('on'), " 761 "a message and a bell ('both') or nothing ('off')." 762 }, 763 764 { .name = "visual-bell", 765 .type = OPTIONS_TABLE_CHOICE, 766 .scope = OPTIONS_TABLE_SESSION, 767 .choices = options_table_visual_bell_list, 768 .default_num = VISUAL_OFF, 769 .text = "How bell alerts should be shown: a message ('on'), " 770 "a message and a bell ('both') or nothing ('off')." 771 }, 772 773 { .name = "visual-silence", 774 .type = OPTIONS_TABLE_CHOICE, 775 .scope = OPTIONS_TABLE_SESSION, 776 .choices = options_table_visual_bell_list, 777 .default_num = VISUAL_OFF, 778 .text = "How silence alerts should be shown: a message ('on'), " 779 "a message and a bell ('both') or nothing ('off')." 780 }, 781 782 { .name = "word-separators", 783 .type = OPTIONS_TABLE_STRING, 784 .scope = OPTIONS_TABLE_SESSION, 785 /* 786 * The set of non-alphanumeric printable ASCII characters minus the 787 * underscore. 788 */ 789 .default_str = "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~", 790 .text = "Characters considered to separate words." 791 }, 792 793 /* Window options. */ 794 { .name = "aggressive-resize", 795 .type = OPTIONS_TABLE_FLAG, 796 .scope = OPTIONS_TABLE_WINDOW, 797 .default_num = 0, 798 .text = "When 'window-size' is 'smallest', whether the maximum size " 799 "of a window is the smallest attached session where it is " 800 "the current window ('on') or the smallest session it is " 801 "linked to ('off')." 802 }, 803 804 { .name = "allow-passthrough", 805 .type = OPTIONS_TABLE_FLAG, 806 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 807 .default_num = 0, 808 .text = "Whether applications are allowed to use the escape sequence " 809 "to bypass tmux." 810 }, 811 812 { .name = "allow-rename", 813 .type = OPTIONS_TABLE_FLAG, 814 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 815 .default_num = 0, 816 .text = "Whether applications are allowed to use the escape sequence " 817 "to rename windows." 818 }, 819 820 { .name = "alternate-screen", 821 .type = OPTIONS_TABLE_FLAG, 822 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 823 .default_num = 1, 824 .text = "Whether applications are allowed to use the alternate " 825 "screen." 826 }, 827 828 { .name = "automatic-rename", 829 .type = OPTIONS_TABLE_FLAG, 830 .scope = OPTIONS_TABLE_WINDOW, 831 .default_num = 1, 832 .text = "Whether windows are automatically renamed." 833 }, 834 835 { .name = "automatic-rename-format", 836 .type = OPTIONS_TABLE_STRING, 837 .scope = OPTIONS_TABLE_WINDOW, 838 .default_str = "#{?pane_in_mode,[tmux],#{pane_current_command}}" 839 "#{?pane_dead,[dead],}", 840 .text = "Format used to automatically rename windows." 841 }, 842 843 { .name = "clock-mode-colour", 844 .type = OPTIONS_TABLE_COLOUR, 845 .scope = OPTIONS_TABLE_WINDOW, 846 .default_num = 4, 847 .text = "Colour of the clock in clock mode." 848 }, 849 850 { .name = "clock-mode-style", 851 .type = OPTIONS_TABLE_CHOICE, 852 .scope = OPTIONS_TABLE_WINDOW, 853 .choices = options_table_clock_mode_style_list, 854 .default_num = 1, 855 .text = "Time format of the clock in clock mode." 856 }, 857 858 { .name = "copy-mode-match-style", 859 .type = OPTIONS_TABLE_STRING, 860 .scope = OPTIONS_TABLE_WINDOW, 861 .default_str = "bg=cyan,fg=black", 862 .flags = OPTIONS_TABLE_IS_STYLE, 863 .separator = ",", 864 .text = "Style of search matches in copy mode." 865 }, 866 867 { .name = "copy-mode-current-match-style", 868 .type = OPTIONS_TABLE_STRING, 869 .scope = OPTIONS_TABLE_WINDOW, 870 .default_str = "bg=magenta,fg=black", 871 .flags = OPTIONS_TABLE_IS_STYLE, 872 .separator = ",", 873 .text = "Style of the current search match in copy mode." 874 }, 875 876 { .name = "copy-mode-mark-style", 877 .type = OPTIONS_TABLE_STRING, 878 .scope = OPTIONS_TABLE_WINDOW, 879 .default_str = "bg=red,fg=black", 880 .flags = OPTIONS_TABLE_IS_STYLE, 881 .separator = ",", 882 .text = "Style of the marked line in copy mode." 883 }, 884 885 { .name = "fill-character", 886 .type = OPTIONS_TABLE_STRING, 887 .scope = OPTIONS_TABLE_WINDOW, 888 .default_str = "", 889 .text = "Character used to fill unused parts of window." 890 }, 891 892 { .name = "main-pane-height", 893 .type = OPTIONS_TABLE_STRING, 894 .scope = OPTIONS_TABLE_WINDOW, 895 .default_str = "24", 896 .text = "Height of the main pane in the 'main-horizontal' layout. " 897 "This may be a percentage, for example '10%'." 898 }, 899 900 { .name = "main-pane-width", 901 .type = OPTIONS_TABLE_STRING, 902 .scope = OPTIONS_TABLE_WINDOW, 903 .default_str = "80", 904 .text = "Width of the main pane in the 'main-vertical' layout. " 905 "This may be a percentage, for example '10%'." 906 }, 907 908 { .name = "mode-keys", 909 .type = OPTIONS_TABLE_CHOICE, 910 .scope = OPTIONS_TABLE_WINDOW, 911 .choices = options_table_mode_keys_list, 912 .default_num = MODEKEY_EMACS, 913 .text = "Key set used in copy mode." 914 }, 915 916 { .name = "mode-style", 917 .type = OPTIONS_TABLE_STRING, 918 .scope = OPTIONS_TABLE_WINDOW, 919 .default_str = "bg=yellow,fg=black", 920 .flags = OPTIONS_TABLE_IS_STYLE, 921 .separator = ",", 922 .text = "Style of indicators and highlighting in modes." 923 }, 924 925 { .name = "monitor-activity", 926 .type = OPTIONS_TABLE_FLAG, 927 .scope = OPTIONS_TABLE_WINDOW, 928 .default_num = 0, 929 .text = "Whether an alert is triggered by activity." 930 }, 931 932 { .name = "monitor-bell", 933 .type = OPTIONS_TABLE_FLAG, 934 .scope = OPTIONS_TABLE_WINDOW, 935 .default_num = 1, 936 .text = "Whether an alert is triggered by a bell." 937 }, 938 939 { .name = "monitor-silence", 940 .type = OPTIONS_TABLE_NUMBER, 941 .scope = OPTIONS_TABLE_WINDOW, 942 .minimum = 0, 943 .maximum = INT_MAX, 944 .default_num = 0, 945 .text = "Time after which an alert is triggered by silence. " 946 "Zero means no alert." 947 948 }, 949 950 { .name = "other-pane-height", 951 .type = OPTIONS_TABLE_STRING, 952 .scope = OPTIONS_TABLE_WINDOW, 953 .default_str = "0", 954 .text = "Height of the other panes in the 'main-horizontal' layout. " 955 "This may be a percentage, for example '10%'." 956 }, 957 958 { .name = "other-pane-width", 959 .type = OPTIONS_TABLE_STRING, 960 .scope = OPTIONS_TABLE_WINDOW, 961 .default_str = "0", 962 .text = "Height of the other panes in the 'main-vertical' layout. " 963 "This may be a percentage, for example '10%'." 964 }, 965 966 { .name = "pane-active-border-style", 967 .type = OPTIONS_TABLE_STRING, 968 .scope = OPTIONS_TABLE_WINDOW, 969 .default_str = "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}", 970 .flags = OPTIONS_TABLE_IS_STYLE, 971 .separator = ",", 972 .text = "Style of the active pane border." 973 }, 974 975 { .name = "pane-base-index", 976 .type = OPTIONS_TABLE_NUMBER, 977 .scope = OPTIONS_TABLE_WINDOW, 978 .minimum = 0, 979 .maximum = USHRT_MAX, 980 .default_num = 0, 981 .text = "Index of the first pane in each window." 982 }, 983 984 { .name = "pane-border-format", 985 .type = OPTIONS_TABLE_STRING, 986 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 987 .default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] " 988 "\"#{pane_title}\"", 989 .text = "Format of text in the pane status lines." 990 }, 991 992 { .name = "pane-border-indicators", 993 .type = OPTIONS_TABLE_CHOICE, 994 .scope = OPTIONS_TABLE_WINDOW, 995 .choices = options_table_pane_border_indicators_list, 996 .default_num = PANE_BORDER_COLOUR, 997 .text = "Whether to indicate the active pane by colouring border or " 998 "displaying arrow markers." 999 }, 1000 1001 { .name = "pane-border-lines", 1002 .type = OPTIONS_TABLE_CHOICE, 1003 .scope = OPTIONS_TABLE_WINDOW, 1004 .choices = options_table_pane_border_lines_list, 1005 .default_num = PANE_LINES_SINGLE, 1006 .text = "Type of characters used to draw pane border lines. Some of " 1007 "these are only supported on terminals with UTF-8 support." 1008 }, 1009 1010 { .name = "pane-border-status", 1011 .type = OPTIONS_TABLE_CHOICE, 1012 .scope = OPTIONS_TABLE_WINDOW, 1013 .choices = options_table_pane_status_list, 1014 .default_num = PANE_STATUS_OFF, 1015 .text = "Position of the pane status lines." 1016 }, 1017 1018 { .name = "pane-border-style", 1019 .type = OPTIONS_TABLE_STRING, 1020 .scope = OPTIONS_TABLE_WINDOW, 1021 .default_str = "default", 1022 .flags = OPTIONS_TABLE_IS_STYLE, 1023 .separator = ",", 1024 .text = "Style of the pane status lines." 1025 }, 1026 1027 { .name = "pane-colours", 1028 .type = OPTIONS_TABLE_COLOUR, 1029 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1030 .default_str = "", 1031 .flags = OPTIONS_TABLE_IS_ARRAY, 1032 .text = "The default colour palette for colours zero to 255." 1033 }, 1034 1035 { .name = "popup-style", 1036 .type = OPTIONS_TABLE_STRING, 1037 .scope = OPTIONS_TABLE_WINDOW, 1038 .default_str = "default", 1039 .flags = OPTIONS_TABLE_IS_STYLE, 1040 .separator = ",", 1041 .text = "Default style of popups." 1042 }, 1043 1044 { .name = "popup-border-style", 1045 .type = OPTIONS_TABLE_STRING, 1046 .scope = OPTIONS_TABLE_WINDOW, 1047 .default_str = "default", 1048 .flags = OPTIONS_TABLE_IS_STYLE, 1049 .separator = ",", 1050 .text = "Default style of popup borders." 1051 }, 1052 1053 { .name = "popup-border-lines", 1054 .type = OPTIONS_TABLE_CHOICE, 1055 .scope = OPTIONS_TABLE_WINDOW, 1056 .choices = options_table_popup_border_lines_list, 1057 .default_num = BOX_LINES_SINGLE, 1058 .text = "Type of characters used to draw popup border lines. Some of " 1059 "these are only supported on terminals with UTF-8 support." 1060 }, 1061 1062 { .name = "remain-on-exit", 1063 .type = OPTIONS_TABLE_CHOICE, 1064 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1065 .choices = options_table_remain_on_exit_list, 1066 .default_num = 0, 1067 .text = "Whether panes should remain ('on') or be automatically " 1068 "killed ('off' or 'failed') when the program inside exits." 1069 }, 1070 1071 { .name = "remain-on-exit-format", 1072 .type = OPTIONS_TABLE_STRING, 1073 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1074 .default_str = "Pane is dead (" 1075 "#{?#{!=:#{pane_dead_status},}," 1076 "status #{pane_dead_status},}" 1077 "#{?#{!=:#{pane_dead_signal},}," 1078 "signal #{pane_dead_signal},}, " 1079 "#{t:pane_dead_time})", 1080 .text = "Message shown after the program in a pane has exited, if " 1081 "remain-on-exit is enabled." 1082 }, 1083 1084 { .name = "scroll-on-clear", 1085 .type = OPTIONS_TABLE_FLAG, 1086 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1087 .default_num = 1, 1088 .text = "Whether the contents of the screen should be scrolled into" 1089 "history when clearing the whole screen." 1090 }, 1091 1092 { .name = "synchronize-panes", 1093 .type = OPTIONS_TABLE_FLAG, 1094 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1095 .default_num = 0, 1096 .text = "Whether typing should be sent to all panes simultaneously." 1097 }, 1098 1099 { .name = "window-active-style", 1100 .type = OPTIONS_TABLE_STRING, 1101 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1102 .default_str = "default", 1103 .flags = OPTIONS_TABLE_IS_STYLE, 1104 .separator = ",", 1105 .text = "Default style of the active pane." 1106 }, 1107 1108 { .name = "window-size", 1109 .type = OPTIONS_TABLE_CHOICE, 1110 .scope = OPTIONS_TABLE_WINDOW, 1111 .choices = options_table_window_size_list, 1112 .default_num = WINDOW_SIZE_LATEST, 1113 .text = "How window size is calculated. " 1114 "'latest' uses the size of the most recently used client, " 1115 "'largest' the largest client, 'smallest' the smallest " 1116 "client and 'manual' a size set by the 'resize-window' " 1117 "command." 1118 }, 1119 1120 { .name = "window-style", 1121 .type = OPTIONS_TABLE_STRING, 1122 .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, 1123 .default_str = "default", 1124 .flags = OPTIONS_TABLE_IS_STYLE, 1125 .separator = ",", 1126 .text = "Default style of panes that are not the active pane." 1127 }, 1128 1129 { .name = "window-status-activity-style", 1130 .type = OPTIONS_TABLE_STRING, 1131 .scope = OPTIONS_TABLE_WINDOW, 1132 .default_str = "reverse", 1133 .flags = OPTIONS_TABLE_IS_STYLE, 1134 .separator = ",", 1135 .text = "Style of windows in the status line with an activity alert." 1136 }, 1137 1138 { .name = "window-status-bell-style", 1139 .type = OPTIONS_TABLE_STRING, 1140 .scope = OPTIONS_TABLE_WINDOW, 1141 .default_str = "reverse", 1142 .flags = OPTIONS_TABLE_IS_STYLE, 1143 .separator = ",", 1144 .text = "Style of windows in the status line with a bell alert." 1145 }, 1146 1147 { .name = "window-status-current-format", 1148 .type = OPTIONS_TABLE_STRING, 1149 .scope = OPTIONS_TABLE_WINDOW, 1150 .default_str = "#I:#W#{?window_flags,#{window_flags}, }", 1151 .text = "Format of the current window in the status line." 1152 }, 1153 1154 { .name = "window-status-current-style", 1155 .type = OPTIONS_TABLE_STRING, 1156 .scope = OPTIONS_TABLE_WINDOW, 1157 .default_str = "default", 1158 .flags = OPTIONS_TABLE_IS_STYLE, 1159 .separator = ",", 1160 .text = "Style of the current window in the status line." 1161 }, 1162 1163 { .name = "window-status-format", 1164 .type = OPTIONS_TABLE_STRING, 1165 .scope = OPTIONS_TABLE_WINDOW, 1166 .default_str = "#I:#W#{?window_flags,#{window_flags}, }", 1167 .text = "Format of windows in the status line, except the current " 1168 "window." 1169 }, 1170 1171 { .name = "window-status-last-style", 1172 .type = OPTIONS_TABLE_STRING, 1173 .scope = OPTIONS_TABLE_WINDOW, 1174 .default_str = "default", 1175 .flags = OPTIONS_TABLE_IS_STYLE, 1176 .separator = ",", 1177 .text = "Style of the last window in the status line." 1178 }, 1179 1180 { .name = "window-status-separator", 1181 .type = OPTIONS_TABLE_STRING, 1182 .scope = OPTIONS_TABLE_WINDOW, 1183 .default_str = " ", 1184 .text = "Separator between windows in the status line." 1185 }, 1186 1187 { .name = "window-status-style", 1188 .type = OPTIONS_TABLE_STRING, 1189 .scope = OPTIONS_TABLE_WINDOW, 1190 .default_str = "default", 1191 .flags = OPTIONS_TABLE_IS_STYLE, 1192 .separator = ",", 1193 .text = "Style of windows in the status line, except the current and " 1194 "last windows." 1195 }, 1196 1197 { .name = "wrap-search", 1198 .type = OPTIONS_TABLE_FLAG, 1199 .scope = OPTIONS_TABLE_WINDOW, 1200 .default_num = 1, 1201 .text = "Whether searching in copy mode should wrap at the top or " 1202 "bottom." 1203 }, 1204 1205 { .name = "xterm-keys", /* no longer used */ 1206 .type = OPTIONS_TABLE_FLAG, 1207 .scope = OPTIONS_TABLE_WINDOW, 1208 .default_num = 1, 1209 .text = "Whether xterm-style function key sequences should be sent. " 1210 "This option is no longer used." 1211 }, 1212 1213 /* Hook options. */ 1214 OPTIONS_TABLE_HOOK("after-bind-key", ""), 1215 OPTIONS_TABLE_HOOK("after-capture-pane", ""), 1216 OPTIONS_TABLE_HOOK("after-copy-mode", ""), 1217 OPTIONS_TABLE_HOOK("after-display-message", ""), 1218 OPTIONS_TABLE_HOOK("after-display-panes", ""), 1219 OPTIONS_TABLE_HOOK("after-kill-pane", ""), 1220 OPTIONS_TABLE_HOOK("after-list-buffers", ""), 1221 OPTIONS_TABLE_HOOK("after-list-clients", ""), 1222 OPTIONS_TABLE_HOOK("after-list-keys", ""), 1223 OPTIONS_TABLE_HOOK("after-list-panes", ""), 1224 OPTIONS_TABLE_HOOK("after-list-sessions", ""), 1225 OPTIONS_TABLE_HOOK("after-list-windows", ""), 1226 OPTIONS_TABLE_HOOK("after-load-buffer", ""), 1227 OPTIONS_TABLE_HOOK("after-lock-server", ""), 1228 OPTIONS_TABLE_HOOK("after-new-session", ""), 1229 OPTIONS_TABLE_HOOK("after-new-window", ""), 1230 OPTIONS_TABLE_HOOK("after-paste-buffer", ""), 1231 OPTIONS_TABLE_HOOK("after-pipe-pane", ""), 1232 OPTIONS_TABLE_HOOK("after-queue", ""), 1233 OPTIONS_TABLE_HOOK("after-refresh-client", ""), 1234 OPTIONS_TABLE_HOOK("after-rename-session", ""), 1235 OPTIONS_TABLE_HOOK("after-rename-window", ""), 1236 OPTIONS_TABLE_HOOK("after-resize-pane", ""), 1237 OPTIONS_TABLE_HOOK("after-resize-window", ""), 1238 OPTIONS_TABLE_HOOK("after-save-buffer", ""), 1239 OPTIONS_TABLE_HOOK("after-select-layout", ""), 1240 OPTIONS_TABLE_HOOK("after-select-pane", ""), 1241 OPTIONS_TABLE_HOOK("after-select-window", ""), 1242 OPTIONS_TABLE_HOOK("after-send-keys", ""), 1243 OPTIONS_TABLE_HOOK("after-set-buffer", ""), 1244 OPTIONS_TABLE_HOOK("after-set-environment", ""), 1245 OPTIONS_TABLE_HOOK("after-set-hook", ""), 1246 OPTIONS_TABLE_HOOK("after-set-option", ""), 1247 OPTIONS_TABLE_HOOK("after-show-environment", ""), 1248 OPTIONS_TABLE_HOOK("after-show-messages", ""), 1249 OPTIONS_TABLE_HOOK("after-show-options", ""), 1250 OPTIONS_TABLE_HOOK("after-split-window", ""), 1251 OPTIONS_TABLE_HOOK("after-unbind-key", ""), 1252 OPTIONS_TABLE_HOOK("alert-activity", ""), 1253 OPTIONS_TABLE_HOOK("alert-bell", ""), 1254 OPTIONS_TABLE_HOOK("alert-silence", ""), 1255 OPTIONS_TABLE_HOOK("client-active", ""), 1256 OPTIONS_TABLE_HOOK("client-attached", ""), 1257 OPTIONS_TABLE_HOOK("client-detached", ""), 1258 OPTIONS_TABLE_HOOK("client-focus-in", ""), 1259 OPTIONS_TABLE_HOOK("client-focus-out", ""), 1260 OPTIONS_TABLE_HOOK("client-resized", ""), 1261 OPTIONS_TABLE_HOOK("client-session-changed", ""), 1262 OPTIONS_TABLE_PANE_HOOK("pane-died", ""), 1263 OPTIONS_TABLE_PANE_HOOK("pane-exited", ""), 1264 OPTIONS_TABLE_PANE_HOOK("pane-focus-in", ""), 1265 OPTIONS_TABLE_PANE_HOOK("pane-focus-out", ""), 1266 OPTIONS_TABLE_PANE_HOOK("pane-mode-changed", ""), 1267 OPTIONS_TABLE_PANE_HOOK("pane-set-clipboard", ""), 1268 OPTIONS_TABLE_PANE_HOOK("pane-title-changed", ""), 1269 OPTIONS_TABLE_HOOK("session-closed", ""), 1270 OPTIONS_TABLE_HOOK("session-created", ""), 1271 OPTIONS_TABLE_HOOK("session-renamed", ""), 1272 OPTIONS_TABLE_HOOK("session-window-changed", ""), 1273 OPTIONS_TABLE_WINDOW_HOOK("window-layout-changed", ""), 1274 OPTIONS_TABLE_HOOK("window-linked", ""), 1275 OPTIONS_TABLE_WINDOW_HOOK("window-pane-changed", ""), 1276 OPTIONS_TABLE_WINDOW_HOOK("window-renamed", ""), 1277 OPTIONS_TABLE_WINDOW_HOOK("window-resized", ""), 1278 OPTIONS_TABLE_HOOK("window-unlinked", ""), 1279 1280 { .name = NULL } 1281 }; 1282