[Vienna-pm] farbiger Konsolenschrift: wie?
Thomas Klausner
domm at zsi.at
Mon Apr 25 01:24:16 PDT 2005
Hi!
On Mon, Apr 25, 2005 at 10:10:08AM +0200, Carl A. Schreiber wrote:
> aber wie mach ich das in Perl mit print?
> weder print '\E[32;40m'..
> noch system "echo -e \'\E[32;40m\'..
> oder so was geht?
use Term::ANSIColor;
print color 'bold red';
print 'das ist rot!';
siehe:
http://search.cpan.org/dist/ANSIColor/
--
#!/usr/bin/perl http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
More information about the Vienna-pm
mailing list