use Term::ANSIColor; : Term « System Functions « Perl






use Term::ANSIColor;

      

print color("red"), "That is an error!\n", color("reset");

   
    
    
    
    
    
  








Related examples in the same category

1.use Term::ReadKey;
2.ReadMode('cbreak');
3.Get Terminal Size
4.Set new prompt letter for terminal when reading data
5.Read password without displaying anything