mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 03:19:40 +00:00
[ROSBE]
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:
parent
525ec3c913
commit
178ff13573
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user