aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0e3613329..f4e0f1dfe 100644
--- a/main.c
+++ b/main.c
@@ -105,6 +105,8 @@ main(int argc, const char *argv[])
while( connected || options->reconnect )
{
command_t cmd;
+ static int repeat = -1;
+ static int random = -1;
if( connected && counter==0 )
{
@@ -119,10 +121,27 @@ main(int argc, const char *argv[])
else
mpd_finishCommand(mpc->connection);
counter=10;
+
+ if( repeat<0 )
+ {
+ repeat = mpc->status->repeat;
+ random = mpc->status->random;
+ }
+ if( repeat != mpc->status->repeat )
+ screen_status_printf("Repeat is %s",
+ mpc->status->repeat ? "On" : "Off");
+ if( random != mpc->status->random )
+ screen_status_printf("Random is %s",
+ mpc->status->random ? "On" : "Off");
+
+ repeat = mpc->status->repeat;
+ random = mpc->status->random;
}
if( connected )
{
+
+
screen_update(mpc);
if( (cmd=get_keyboard_command()) != CMD_NONE )
{