New option, set-titles-string, to allow the window title to be specified (as

for status-left/right) if set-titles is on. Also only update the title when the
status line is being redrawn.
This commit is contained in:
Nicholas Marriott
2009-09-18 15:19:27 +00:00
parent 5c60162e3c
commit 63d499f480
4 changed files with 33 additions and 13 deletions

View File

@ -69,6 +69,7 @@ const struct set_option_entry set_option_table[] = {
{ "repeat-time", SET_OPTION_NUMBER, 0, SHRT_MAX, NULL },
{ "set-remain-on-exit", SET_OPTION_FLAG, 0, 0, NULL },
{ "set-titles", SET_OPTION_FLAG, 0, 0, NULL },
{ "set-titles-string", SET_OPTION_STRING, 0, 0, NULL },
{ "status", SET_OPTION_FLAG, 0, 0, NULL },
{ "status-attr", SET_OPTION_ATTRIBUTES, 0, 0, NULL },
{ "status-bg", SET_OPTION_COLOUR, 0, 0, NULL },