From: Gordon Thiesfeld Date: 2010-10-26T00:14:48+09:00 Subject: Re: win32console changes Windows cmd.exe colors --0016e6d5fc5fff1315049372660b Content-Type: text/plain; charset=ISO-8859-1 On Mon, Oct 25, 2010 at 3:10 AM, John G. wrote: > buffer. However, would it be possible to fix this issue so that a) > cmd-window properties are not affected and b) cat is not needed, like > now? > I believe so. Currently, win32console makes assumptions about the default foreground and background colors[1]. This should be easy enough to change. The only part I'm not sure of is how to determine the defaults. It may be as simple as reading the registry for the current values. I'll play with this a bit, and submit a patch if I come up with something. [1] http://github.com/luislavena/win32console/blob/master/lib/Win32/Console/ANSI.rb#L162 Gordon --0016e6d5fc5fff1315049372660b--