diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-24 16:08:24 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-24 16:08:24 +0000 |
commit | b0353fc77099ec9e95310ca4e106d88985ee05b4 (patch) | |
tree | 68c6c5fba41296eebccf2b3d92fd59156768ffb1 /src/conf.c | |
parent | 31e6fa72cc45147feb11d62eba70c3d8f314301d (diff) | |
download | mpd-b0353fc77099ec9e95310ca4e106d88985ee05b4.tar.gz mpd-b0353fc77099ec9e95310ca4e106d88985ee05b4.tar.xz mpd-b0353fc77099ec9e95310ca4e106d88985ee05b4.zip |
Made the xterm title dynamic, added configuration option xterm-title-format
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1647 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c index 0069489fa..8cf4f5b3a 100644 --- a/src/conf.c +++ b/src/conf.c @@ -53,12 +53,14 @@ #define CONF_COLOR_DEFINITION "colordef" #define CONF_LIST_FORMAT "list-format" #define CONF_STATUS_FORMAT "status-format" +#define CONF_XTERM_TITLE_FORMAT "xterm-title-format" #define CONF_LIST_WRAP "wrap-around" #define CONF_FIND_WRAP "find-wrap" #define CONF_AUDIBLE_BELL "audible-bell" #define CONF_VISIBLE_BELL "visible-bell" #define CONF_XTERM_TITLE "set-xterm-title" + /* Deprecated - configuration field names */ #define OLD_CONF_ENABLE_COLORS "enable_colors" #define OLD_CONF_AUTO_CENTER "auto_center" @@ -515,6 +517,12 @@ read_rc_file(char *filename, options_t *options) g_free(options->status_format); options->status_format = get_format(value); } + /* xterm title format string */ + else if( !strcasecmp(CONF_XTERM_TITLE_FORMAT, name) ) + { + g_free(options->xterm_title_format); + options->xterm_title_format = get_format(value); + } else if( !strcasecmp(CONF_LIST_WRAP, name) ) { options->list_wrap = str2bool(value); |