Commit Graph

88 Commits

Author SHA1 Message Date
wm4 bcbc30e487 mp_msg: make MSGL_STATUS use the same color as MSGL_INFO
The green status line is annoying.
2012-09-23 15:25:01 +02:00
Rudolf Polzer 020a954b60 mp_msg: use stdout for all output except status; put status on stderr
improves interaction with | less, | grep, ...
2012-09-19 14:57:32 +02:00
Rudolf Polzer 2f1bc6beb6 mp_msg: enable --msgcolor by default; force it off if stdout is no tty 2012-09-19 14:57:29 +02:00
wm4 6e020e66e0 mp_msg: remove filename_recode
This was intended for translating filenames from filesystem charset to
the terminal charset. Modern sane platforms use UTF-8 for everything,
and on Windows we use unicode APIs, so this is not needed anymore.

Remove filename_recode, all uses of it, options and configure checks
related to terminal output charset, and code that tries to determine
the same.
2012-07-31 01:35:53 +02:00
wm4 1aa2e36122 Merge remote-tracking branch 'origin/master'
Conflicts:
	bstr.c
	bstr.h
	etc/input.conf
	input/input.c
	input/input.h
	libao2/ao_pulse.c
	libmpcodecs/vf_ass.c
	libmpcodecs/vf_vo.c
	libvo/gl_common.c
	libvo/x11_common.c
	mixer.c
	mixer.h
	mplayer.c
2012-04-01 22:52:33 +02:00
wm4 67e7da2d70 mp_msg: double maximum message size 2012-03-31 02:58:48 +02:00
Uoti Urpala 4f1e4eae99 cosmetics: misc minor cleanups
The deleted ZRM* things were only relevant to vo_zr, which was deleted
earlier.
2012-03-25 22:30:37 +03:00
Martin Herkt f891939b4d windows: terminal: unicode, --msgcolor, size change
Make mp_msg() support unicode output, --msgcolor and variable screen
sizes.

Patch reintegrated by wm4.
2012-03-09 20:48:54 +02:00
Clément Bœsch b68f9fef32 cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
Clément Bœsch 6506d4ad84 cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
reimar aa82817945 mp_msg: avoid mangling other output with status line
Output a '\n' when printing a message after a status line to move the
terminal to the next line instead of writing on top of the status one.

Patch by Dan Oscarsson [Dan.Oscarsson tieto com]

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31691 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:43 +02:00
reimar 63b69b312c mp_msg.c: Avoid out-of-bounds read if empty string is printed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31626 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
Uoti Urpala acdce0176a Merge svn changes up to r30732 2010-03-10 01:25:15 +02:00
Uoti Urpala 12d3caebc7 Merge svn changes up to r30475 2010-03-09 19:18:43 +02:00
Uoti Urpala 81065d41b6 Add runtime translation support
Add support for gettext-based runtime translations. Enabled with
configure switch --enable-translation (no autodetection). Note that no
translation files are installed yet.
2010-03-08 22:53:12 +02:00
zuxy 9c0f9900ee Reset output color after each line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30716 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-23 06:42:51 +00:00
diego 7262f6c9b4 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
2010-02-22 15:34:56 +00:00
diego 99c1bbca2a Add license header to all top-level files missing them.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30471 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-30 23:24:23 +00:00
diego 64d5279410 Remove pointless #ifdefs around harmless internal header #includes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29471 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-02 16:00:55 +00:00
Uoti Urpala 546c3fb53c Remove internal libass tree
Remove the libass/ directory and use the newest standalone version of
the library instead.
2009-07-26 20:22:43 +03:00
Anton Khirnov 87366694d8 Remove the internal GUI
The GUI is badly designed and too closely coupled to the internal
details of other code. The GUI code is in bad shape and unmaintained
for years. There is no indication that anyone would maintain it in the
future either. Even if someone did volunteer to implement a better
integrated GUI having the current code in the tree probably wouldn't
help much. So get rid of it.
2009-07-07 21:49:42 +03:00
Uoti Urpala a2037a2eff Merge svn changes up to r29412 2009-07-07 02:56:01 +03:00
Uoti Urpala 0eb321bf2c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
Uoti Urpala 7394680e4e Add temporary no-op translation function stubs 2009-07-06 19:56:57 +03:00
reimar 71fefd86ac Use a malloced string for the get_term_charset return value.
This is necessary at least on POSIX systems since the buffer returned by
nl_langinfo may change its contents with e.g. each setlocale call.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29332 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-31 13:00:51 +00:00
diego 6e9cbdc104 whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
diego 0864f92e7a Get rid of pointless 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-03 23:01:03 +00:00
diego 091d352d06 Rename font-related preprocessor directives.
Switch them from a HAVE_ to a CONFIG_ prefix.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-07 10:36:07 +00:00
diego d17f9943af Rename some preprocessor directives from CONFIG_* to HAVE_* where appropriate;
CONFIG_ prefix for configurable options, HAVE_ for system-dependent stuff.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27391 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-01 20:28:58 +00:00
diego 3b31fa5717 Rename two GUI-related preprocessor directives:
HAVE_NEW_GUI --> CONFIG_GUI, HAVE_GTK2_GUI --> CONFIG_GTK2


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27375 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-30 13:44:59 +00:00
diego 4b141479da Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-30 12:01:30 +00:00
zuxy b74750a948 Enable runtime control for colorful and/or module name output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26402 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-12 12:51:07 +00:00
diego 835c654bb0 typo fix: inited --> initialized
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-14 14:23:55 +00:00
diego ae39a6457e cosmetics: Remove trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25431 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 09:02:21 +00:00
reimar bc41cde0b7 Make sure forked code does not try to display a GTK message box (and thus crashes)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24717 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-07 08:41:31 +00:00
diego c1999c5661 Remove redundant extern variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24141 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 12:45:26 +00:00
diego ba2799502d Create a new MSGT for just the status line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23478 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-05 16:13:00 +00:00
diego 5c9abf7f9f Gui --> gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23095 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-23 07:42:42 +00:00
uau 208d4343ef "()" to "(void)" function param list fixes
patch from Stefan Huehner, stefan huehner org


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22904 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-01 21:59:54 +00:00
diego 36a80a348e mp_msg.c is never built with -DCODECS2HTML.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22535 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-12 18:35:52 +00:00
diego 77ff00c85f Remove unused variable lev_text, patch by Zuxy Meng, zuxy.meng gmail com.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22489 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-08 13:42:34 +00:00
reimar a188335a33 Add code to detect and convert to console codepage on Windows.
Patch by Zuxy Meng [zuxy.meng at gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22460 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-04 19:04:08 +00:00
reimar b642c2280a Handle mp_msg_charset == NULL correctly in filename_recode.
Patch by Vladimir Voroshilov - voroshil gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22024 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-27 10:11:40 +00:00
reimar 70e10c7436 Cosmetics: remove tabs, almost all added during last patch, from
an otherwise tab-free file.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22023 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-27 10:10:05 +00:00
gpoirier 333436a8aa filename double-conversion, especially usefull for CJK users :-)
Patch by Zuxy Meng <zuxy.meng@gmail.com> 
date: Oct 25, 2006 2:20 AM
subject: [MPlayer-dev-eng] [PATCH] Filename double-conversion


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22020 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-26 09:57:09 +00:00
reimar 1ab5699571 Fix possible crashes with colorized mplayer output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21669 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-18 18:50:46 +00:00
reimar 081b699393 Mixed up from and to charsets in iconv open failure message.
Patch by Zuxy Meng zuxy.meng at gmail com.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19555 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-27 08:10:07 +00:00
reynaldo 3a406e94d7 Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 07:20:34 +00:00
rfelker a703fdaa61 more cruft
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18001 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-30 22:28:32 +00:00
rfelker 8445dc1e96 remove deprecated, never-used gnu gettext cruft.
proper runtime message catalogs will be added with catgets in the
(near?) future.

this resolves complaints about mp_msg printing crap at startup when
gettext was (stupidly) enabled by default even though it was not
useful.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17999 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-30 22:14:44 +00:00