Search This Blog

Wednesday, March 12, 2014

Unix Font Coloring

Font co-lour at terminal level can be changed with options of print.The same can be placed in .profile as well for convince.

print "\033[33m This is YELLOW \n"
print "\033[36m This is BLUE \n"
print "\033[35m This is PINK \n"

To get back to the normal test ...

print "\033[m This is Normal Text\n"

Examples:


$print "\033[33m This is YELLOW \n"
This is YELLOW
$
$print "\033[36m This is BLUE \n"
This is BLUE
$
$print "\033[35m This is PINK \n"
This is PINK 
$
$
$print "\033[m This is Normal Text\n"
This is Normal Text
$

No comments:

Post a Comment