summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-08-25 18:39:36 +0200
committerMichał Cichoń <michcic@gmail.com>2015-08-25 18:39:36 +0200
commitd5876d68f2676072834c83509f1ee79fb3c48f65 (patch)
treef21aa1ad30b9f99071c148917aa74e0f7fb98816 /src/main.c
parent103d71ac2fb3ead96da16d25097f1f559c953fcd (diff)
downloadpianobar-windows-d5876d68f2676072834c83509f1ee79fb3c48f65.tar.gz
pianobar-windows-d5876d68f2676072834c83509f1ee79fb3c48f65.tar.bz2
pianobar-windows-d5876d68f2676072834c83509f1ee79fb3c48f65.zip
Add format_title settings to control Pianobar window title appearance.
Since I'm not aware of any standard method to set title with escape codes explicit mechanism to control window title was introduced.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4569de8..7c6ac08 100644
--- a/src/main.c
+++ b/src/main.c
@@ -247,6 +247,8 @@ static void BarMainPlayerCleanup (BarApp_t *app) {
BarPlayer2Finish(app->player);
+ BarConsoleSetTitle (TITLE);
+
//if (threadRet == (void *) PLAYER_RET_OK) {
// app->playerErrors = 0;
//} else if (threadRet == (void *) PLAYER_RET_SOFTFAIL) {
@@ -340,6 +342,8 @@ int main (int argc, char **argv) {
BarConsoleInit ();
+ BarConsoleSetTitle (TITLE);
+
/* init some things */
BarPlayer2Init (&app.player);