From d5876d68f2676072834c83509f1ee79fb3c48f65 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Tue, 25 Aug 2015 18:39:36 +0200 Subject: 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. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') 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); -- cgit v1.2.3