aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-22 10:04:39 +0200
committerMax Kellermann <max@duempel.org>2008-09-22 10:04:39 +0200
commit07632841df4ff1d8fcfac33bd93e06ee43a4498e (patch)
treecadb859c1ae63041fbc774528974283a2b1635bf /src/main.c
parentd28a7d463b62412e2d075b834db20baf93dcaeba (diff)
downloadmpd-07632841df4ff1d8fcfac33bd93e06ee43a4498e.tar.gz
mpd-07632841df4ff1d8fcfac33bd93e06ee43a4498e.tar.xz
mpd-07632841df4ff1d8fcfac33bd93e06ee43a4498e.zip
screen: moved code to ncu.c
Moved basic libncurses initialization to ncu.c and ncu.h. Keep generic code out of screen.c.
Diffstat (limited to '')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 5dac8b92b..a33643d10 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,6 +26,7 @@
#include "conf.h"
#include "command.h"
#include "lyrics.h"
+#include "ncu.h"
#include "screen.h"
#include "screen_utils.h"
#include "strfsong.h"
@@ -417,7 +418,7 @@ main(int argc, const char *argv[])
exit(EXIT_FAILURE);
}
- ncurses_init();
+ ncu_init();
lyrics_init();
@@ -452,4 +453,5 @@ main(int argc, const char *argv[])
g_io_channel_unref(keyboard_channel);
exit_and_cleanup();
+ ncu_deinit();
}