summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-18 15:03:08 +0100
committerwm4 <wm4@nowhere>2013-12-20 21:07:57 +0100
commit4d4b82217126de3160299b3aefba1f6941623d30 (patch)
treee72cfa8070e7abfd6b5ef62176b19dd2e84e9673 /player
parenta4fe95b0d8d339ba5afbdb5346ad8fd367a4a1c1 (diff)
downloadmpv-4d4b82217126de3160299b3aefba1f6941623d30.tar.bz2
mpv-4d4b82217126de3160299b3aefba1f6941623d30.tar.xz
terminal: abstract terminal color handling
Instead of making msg.c an ifdef hell for unix vs. windows code, move the code to separate functions defined in terminal-unix.c/terminal- win.c. Drop the code that selects random colors for --msgmodule prefixes.
Diffstat (limited to 'player')
-rw-r--r--player/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c
index a1d56df5f0..7f578a2c4b 100644
--- a/player/main.c
+++ b/player/main.c
@@ -264,7 +264,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
SetErrorMode(0x8003);
#endif
- load_termcap(NULL); // load key-codes
+ terminal_init();
mp_time_init();
}