OT: I Need Help From Windows Experts

Kenneth Brody kenbrody at bestweb.net
Sun Jan 22 13:14:32 PST 2006


Quoting Bob Stockler (Sat, 21 Jan 2006 20:26:14 -0500):

> I'm converting a UNIX AWK program I wrote to display a 3-month
> calendar from any date from 01/01/0001 to 12/31/9999 with the
> target month and date in hightlighed video into Perl (so it can
> be used on Windows as well as UNIX and Linux).
>
> In UNIX and Linux I can easily get the terminal control codes that
> start and stop reverse video.  In Windows I'm at a complete loss.
>
> The REAL question:
>
>   Can anyone reading this give me the codes that, in a Perl
>   program, can be used on Windows to Start-Stop Reverse Video?
[...]

On Win95/98/Me, _if_ ansi.sys is loaded, you could probably use
"ESC [ 7 m" and "ESC [ 0 m" for reverse on and off, respectively.

However, under NT (NT/2000/XP/2003), I don't know if there is any
such sequence.  A quick test with "PROMPT=$E[7m$P$G$E[0m" causes
the ESC to be rendered as a little left arrow, and not interpreted.
Ditto for an "echo '\033[7m'" from my ksh for Windows.

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