Add a session_alerts format which is a list of all the alerts in the

current session in symbolic form (something like "0!,4~,5!"). Use this
in the default set-titles-string. Prompted by a request from Jan ONDREJ.
This commit is contained in:
nicm
2015-05-12 15:29:29 +00:00
parent e958db09a7
commit ec34439f9c
3 changed files with 22 additions and 1 deletions

View File

@ -296,7 +296,7 @@ const struct options_table_entry session_options_table[] = {
{ .name = "set-titles-string",
.type = OPTIONS_TABLE_STRING,
.default_str = "#S:#I:#W - \"#T\""
.default_str = "#S:#I:#W - \"#T\" #{session_alerts}"
},
{ .name = "status",