goBoating help me! perl color question
goBoating help me! perl color question
(OP)
Have u ever gotten color to work in perl? win32 system.
example:
----------------------
use Term::ANSIColor;
print color("red"),"red color should be here", color("reset");
---------------------
here is the output:
[31mred color should be here[0m
example:
----------------------
use Term::ANSIColor;
print color("red"),"red color should be here", color("reset");
---------------------
here is the output:
[31mred color should be here[0m
RE: goBoating help me! perl color question
keep the rudder amid ship and beware the odd typo
RE: goBoating help me! perl color question
....'just thinking (typing) out loud......I suspect that the Win32 'dos' window is not ANSI compliant. I can't find any specifications on the 'dos' window to determine if this is the case. The Term::ANSIColor module is ANSI specific.
However, there is a color dos command for controling foreground and background color. You could call that from your Perl.
You can make system calls to mod the appearance of the window.
#!perl
system("color 37");
print <<EndPrint;
Some grey text in an aqua screen.
The first digit is background color and second is foreground(text).
See windows help->dos->Command Index for help on color codes.
Type color at the prompt to reset to defaults.
EndPrint
Is Tk an alternative? It provides alot of GUI function and is not to difficult to play with.
'hope this helps
keep the rudder amid ship and beware the odd typo
RE: goBoating help me! perl color question