[BACK]Return to options-table.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Annotation of src/usr.bin/tmux/options-table.c, Revision 1.132

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