OT: Windows Console Inverse

Kenneth Brody kenbrody at bestweb.net
Mon Jan 23 06:33:35 PST 2006


Quoting Fairlight (Mon, 23 Jan 2006 00:01:40 -0500):

> Sorry fo rthe new thread.  Just deleted the ones that were in it to
> which I
> could have replied before getting this idea.
>
> Ken, you said the startup menu would be using video memory or the BIOS,
> and that's not an option once in Windows.  Okay, what about:
>
> cmd
> edit
>
> All the inverse/highlight/etc that it does, inside a command shell
> window, must be doable in some reproducable fashion.  Any idea how?
>
> Unfortunately, it didn't fall for any redirect tricks that would have
> led to analysis.  :(

Why point to "edit" when you could point to filePro itself?  :-)

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.

--
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