OT: Windows Console Inverse

Kenneth Brody kenbrody at bestweb.net
Mon Jan 23 09:27:15 PST 2006


Quoting Fairlight (Mon, 23 Jan 2006 11:48:44 -0500):
[...]
> > There is an entire API for managing the console.  However, none of it
> > includes "send this escape sequence to stdout, and further output to
> > stdout will now be in a different color".  There is an API call
> > (SetConsoleTextAttribute) which will set the color of text send to
> > stdout, but it is an explicit API call.
>
> The assertion was that it wasn't doable unless ansi.sys was loaded.
> From what you've just told me, this is incorrect.  Simply installing
> Win32::Console and using it should work just fine.

It appears that the Win32::Console module is something that loads an
ansi emulator into the Perl environment, and that Perl itself is
handling the emulation internally.

[...]
> Just bear in mind that anyone running it would also need to install
> Win32::Console--unless you compile your perl and it's automatically
> included in the binary.  I have a commercial compiler.  Bob may want to
> look at PAR.

As long as Bob is writing his script in Perl, that may be a viable
solution.  Of course, if he's not using Perl, then this whole part of
the thread becomes moot.

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list