Report errors that were originally silent.
This commit is contained in:
@ -116,7 +116,7 @@ function setup_color_depth()
|
|||||||
then
|
then
|
||||||
use_3_bit=1
|
use_3_bit=1
|
||||||
else
|
else
|
||||||
exit -1
|
echo "ERROR!" 1>&2 ; exit -1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ function ansi_color()
|
|||||||
{
|
{
|
||||||
if (( ${1} > 15 ))
|
if (( ${1} > 15 ))
|
||||||
then
|
then
|
||||||
exit -1
|
echo "ERROR!" 1>&2 ; exit -1
|
||||||
elif (( ${1} >= 8 ))
|
elif (( ${1} >= 8 ))
|
||||||
then
|
then
|
||||||
use_4_bit=1
|
use_4_bit=1
|
||||||
@ -165,10 +165,9 @@ function ansi_color()
|
|||||||
function ext_color()
|
function ext_color()
|
||||||
{
|
{
|
||||||
use_8_bit=1
|
use_8_bit=1
|
||||||
selection=${1:4}
|
|
||||||
if (( ${1} > 255 ))
|
if (( ${1} > 255 ))
|
||||||
then
|
then
|
||||||
exit -1
|
echo "ERROR!" 1>&2 ; exit -1
|
||||||
else
|
else
|
||||||
ext_8_bit=${1}
|
ext_8_bit=${1}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user