Fix color display on BSD/MacOSX
Patch by Thomas Fabber

ROSBE-35 #comment Colors fix committed in 2093

svn path=/trunk/RosBE/; revision=2093
This commit is contained in:
Pierre Schweitzer 2014-02-13 19:20:35 +00:00
parent 525ec3c913
commit 178ff13573
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ export _ROSBE_VERSION=`cat "$_ROSBE_ROSSCRIPTDIR/RosBE-Version"`
# Set the text color
if [ "$2" != "" ]; then
echo -e "\e[$2m"
echo -e "\033[$2m"
fi
# Set the architecture to build for

View File

@ -17,7 +17,7 @@
# Parameter 2: Optional additional parameters for "echo"
rs_boldmsg()
{
echo -e $2 "\e[1m$1\e[0m"
echo -e $2 "\033[1m$1\033[0m"
}
# Check for several requirements, which need to be met in order to run the installation script properly
@ -192,7 +192,7 @@ rs_extract_module()
# Parameter 2: Optional additional parameters for "echo"
rs_greenmsg()
{
echo -e $2 "\e[32m$1\e[0m"
echo -e $2 "\033[32m$1\033[0m"
}
# Print a message in yellow color
@ -200,7 +200,7 @@ rs_greenmsg()
# Parameter 2: Optional additional parameters for "echo"
rs_yellowmsg()
{
echo -e $2 "\e[33m$1\e[0m"
echo -e $2 "\033[33m$1\033[0m"
}
# Creates the given directory if it does not exist and cleans it if it does.
@ -248,7 +248,7 @@ rs_prepare_module()
# Parameter 2: Optional additional parameters for "echo"
rs_redmsg()
{
echo -e $2 "\e[31m$1\e[0m"
echo -e $2 "\033[31m$1\033[0m"
}
# Allow a choice between several options