From 7262f6c9b4f3cd1bd8b98bcc40b74a05aa989ebc Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 22 Feb 2010 15:34:56 +0000 Subject: Properly declare get_term_charset() instead of forward declaring it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30710 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'mp_msg.c') diff --git a/mp_msg.c b/mp_msg.c index 93f793d7c8..a5405c59f4 100644 --- a/mp_msg.c +++ b/mp_msg.c @@ -22,18 +22,11 @@ #include #include "config.h" +#include "osdep/getch2.h" #ifdef CONFIG_ICONV #include #include -/** - * \brief gets the name of the system's terminal character set - * \return a malloced string indicating the system charset - * - * Be warned that this function on many systems is in no way thread-safe - * since it modifies global data - */ -char* get_term_charset(void); #endif #if defined(FOR_MENCODER) -- cgit v1.2.3 From 9c0f9900ee92f1fae5901aeec00fe088d7227aa0 Mon Sep 17 00:00:00 2001 From: zuxy Date: Tue, 23 Feb 2010 06:42:51 +0000 Subject: Reset output color after each line. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30716 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mp_msg.c') diff --git a/mp_msg.c b/mp_msg.c index a5405c59f4..8d93c68c6e 100644 --- a/mp_msg.c +++ b/mp_msg.c @@ -238,5 +238,7 @@ void mp_msg(int mod, int lev, const char *format, ... ){ header = tmp[strlen(tmp)-1] == '\n' || tmp[strlen(tmp)-1] == '\r'; fprintf(stream, "%s", tmp); + if (mp_msg_color) + fprintf(stream, "\033[0m"); fflush(stream); } -- cgit v1.2.3