Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
f29a65ac
Commit
f29a65ac
authored
Feb 09, 2020
by
Eric
Browse files
just adding a couple of more colors for the console output
parent
a6aafd44
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/wxc_functions.inc
View file @
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
"
\
0
33
[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
"
\
0
33
[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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment