Created
July 15, 2012 13:12
-
-
Save e7o-de/3116845 to your computer and use it in GitHub Desktop.
Colored terminal output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function colorOutput($text) { | |
$text = str_pad($text, 80, ' ', STR_PAD_RIGHT); | |
echo "\x1b[7m$text\x1b[0m"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment