summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2022-03-08 18:31:46 +0000
committernicm <nicm>2022-03-08 18:31:46 +0000
commita3d920930bf77cafa5260e25584dd3ba1d26f9cb (patch)
tree8b8515e1a02da155fb1c6d7acd506747efb7de58 /options-table.c
parentad9b8059836d424f70a8579d28e28e0186cdbaa6 (diff)
Add remain-on-exit-format to set text shown when pane is dead.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c
index 6d136f76..d1bc3577 100644
--- a/options-table.c
+++ b/options-table.c
@@ -1061,6 +1061,19 @@ const struct options_table_entry options_table[] = {
"killed ('off' or 'failed') when the program inside exits."
},
+ { .name = "remain-on-exit-format",
+ .type = OPTIONS_TABLE_STRING,
+ .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
+ .default_str = "Pane is dead ("
+ "#{?#{!=:#{pane_dead_status},},"
+ "status #{pane_dead_status},}"
+ "#{?#{!=:#{pane_dead_signal},},"
+ "signal #{pane_dead_signal},}, "
+ "#{t:pane_dead_time})",
+ .text = "Message shown after the program in a pane has exited, if "
+ "remain-on-exit is enabled."
+ },
+
{ .name = "synchronize-panes",
.type = OPTIONS_TABLE_FLAG,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,