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.
This commit is contained in:
wm4
2013-12-18 15:03:08 +01:00
parent a4fe95b0d8
commit 4d4b822171
5 changed files with 81 additions and 105 deletions

View File

@@ -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();
}