Commit b9a82e10 authored by Eric - kg6wxc's avatar Eric - kg6wxc

Merge branch 'consoleOutputGrey' into 'master'

just adding a couple of more colors for the console output

See merge request kg6wxc/meshmap!2
parents a6aafd44 f29a65ac
......@@ -447,7 +447,7 @@ function wxc_checkBand ($channel, $board_id = null) {
//something I was playing with
function wxc_echoWithColor ($text, $color) {
if ($color == "red") {
echo "\33[31m" . $text . "\033[0m";
echo "\033[31m" . $text . "\033[0m";
}
if ($color == 'redBold') {
echo "\033[1m\33[31m" . $text . "\033[0m";
......@@ -470,10 +470,13 @@ function wxc_echoWithColor ($text, $color) {
if ($color == 'bold') {
echo "\033[1m" . $text . "\033[0m";
}
if ($color == 'grey') {
echo "\033[37m" . $text . "\033[0m";
}
}
function wxc_addColor ($text, $color) {
if ($color == "red") {
return "\33[31m" . $text . "\033[0m";
return "\033[31m" . $text . "\033[0m";
}
if ($color == "purple") {
return "\033[35m" . $text . "\033[0m";
......@@ -493,6 +496,9 @@ function wxc_addColor ($text, $color) {
if ($color == 'bold') {
return "\033[1m" . $text . "\033[0m";
}
if ($color == 'grey') {
return "\033[35m" . $text . "\033[0m";
}
}
//may use this at some point
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment