[MPlayer-dev-eng] [PATCH] Reset output color after each line

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Feb 19 19:40:51 CET 2010


On Thu, Feb 18, 2010 at 05:53:37PM +0100, Diego Biurrun wrote:
> On Thu, Feb 18, 2010 at 11:09:27PM +0800, Zuxy Meng wrote:
> > 
> > Currently with -msgcolor we don't reset ANSI color but rely on next
> > line's setting so after exiting from mplayer an end user will still
> > get the color of mplayer's last output line (on my Fedora, gray on
> > white) that doesn't seem to be graceful. The attached patch corrects
> > this problem by resetting output color after each output line.
> 
> What about resetting at the end?

Hm, any specific reason why you'd prefer it?
This approach would strongly reduce the risk of the terminal having
the wrong colors even after a SIGKILL - though it's not that helpful
since echo will still be off, but still.



More information about the MPlayer-dev-eng mailing list