aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorMikael Svantesson <mikael@distopic.net>2008-12-05 18:35:56 +0100
committerMax Kellermann <max@duempel.org>2008-12-05 18:35:56 +0100
commit3cff7b547795bdeeea44dc54bc851e70bfc7b40f (patch)
tree6e8ef272c5b51ccce4eebb79d7a27d814467ce52 /src/screen.c
parent785cb31333a8f0aaedf33af9cba38f012d514453 (diff)
downloadmpd-3cff7b547795bdeeea44dc54bc851e70bfc7b40f.tar.gz
mpd-3cff7b547795bdeeea44dc54bc851e70bfc7b40f.tar.xz
mpd-3cff7b547795bdeeea44dc54bc851e70bfc7b40f.zip
screen_outputs: new screen to control MPD's output devices
The "outputs" screen allows the user to enable or disable MPD's audio output devices.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 1a68b4100..a697fdfd6 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -159,6 +159,12 @@ paint_top_window2(const char *header, mpdclient_t *c)
#ifdef ENABLE_LYRICS_SCREEN
print_hotkey(w, CMD_SCREEN_LYRICS, _("Lyrics"));
#endif
+#ifdef ENABLE_OUTPUTS_SCREEN
+ colors_use(w, COLOR_TITLE_BOLD);
+ waddstr(w, get_key_names(CMD_SCREEN_OUTPUTS, FALSE));
+ colors_use(w, COLOR_TITLE);
+ waddstr(w, _(":Outputs "));
+#endif
#endif
}
@@ -844,6 +850,11 @@ screen_cmd(mpdclient_t *c, command_t cmd)
screen_switch(&screen_lyrics, c);
break;
#endif
+#ifdef ENABLE_OUTPUTS_SCREEN
+ case CMD_SCREEN_OUTPUTS:
+ screen_switch(&screen_outputs, c);
+ break;
+#endif
default:
break;
}