aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--screen.c3
-rw-r--r--screen.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 37f514622..18feab9a0 100644
--- a/screen.c
+++ b/screen.c
@@ -298,7 +298,7 @@ screen_init(void)
/* return from getch() without blocking */
// nodelay(stdscr, TRUE);
keypad(stdscr, TRUE);
- timeout(100); /*void wtimeout(WINDOW *win, int delay);*/
+ timeout(SCREEN_TIMEOUT);
if( COLS<SCREEN_MIN_COLS || LINES<SCREEN_MIN_ROWS )
{
@@ -440,7 +440,6 @@ void
screen_cmd(mpd_client_t *c, command_t cmd)
{
int n;
- // char buf[256];
screen_mode_t new_mode = screen->mode;
switch(screen->mode)
diff --git a/screen.h b/screen.h
index 78ca39c48..82033d875 100644
--- a/screen.h
+++ b/screen.h
@@ -22,6 +22,9 @@
#define SCREEN_MIN_COLS 14
#define SCREEN_MIN_ROWS 5
+/* timeout for non blocking read [ms] */
+#define SCREEN_TIMEOUT 100
+
#define IS_PLAYING(s) (s==MPD_STATUS_STATE_PLAY)
#define IS_PAUSED(s) (s==MPD_STATUS_STATE_PAUSE)