replaced \e with proper ^[
This commit is contained in:
parent
ab67878f9a
commit
87518bb160
1 changed files with 7 additions and 7 deletions
14
cbuild.sh
14
cbuild.sh
|
@ -35,11 +35,11 @@ export_vars() {
|
||||||
}
|
}
|
||||||
|
|
||||||
info() {
|
info() {
|
||||||
printf "\e[34;1m[*]\e[21m %s\e[0m\n" "$@"
|
printf "[34;1m[*][21m %s[0m\n" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
err() {
|
err() {
|
||||||
printf "\e[31;1m[!]\e[21m %s\e[0m\n" "$@"
|
printf "[31;1m[!][21m %s[0m\n" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
gen_makefile() {
|
gen_makefile() {
|
||||||
|
@ -97,7 +97,7 @@ clean() {
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
build
|
build
|
||||||
printf '\e[36;1mRunning\e[0m %s\n' "./${TARGET}"
|
printf '[36;1mRunning[0m %s\n' "./${TARGET}"
|
||||||
"./${TARGET}"
|
"./${TARGET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,11 +113,11 @@ __progress__() {
|
||||||
rtargets="$(make -f "${MAKEFILE}" -e "${TARGET}" -n | grep "^${CC}" | wc -l)"
|
rtargets="$(make -f "${MAKEFILE}" -e "${TARGET}" -n | grep "^${CC}" | wc -l)"
|
||||||
targetno=$((${ntargets} - ${rtargets} + 1))
|
targetno=$((${ntargets} - ${rtargets} + 1))
|
||||||
if [ "${1}" = "object" ]; then
|
if [ "${1}" = "object" ]; then
|
||||||
printf '\e[35;1m[%3d/%d]\e[0m ' "${targetno}" "${ntargets}"
|
printf '[35;1m[%3d/%d][0m ' "${targetno}" "${ntargets}"
|
||||||
printf '\e[32mBuilding\e[0m '
|
printf '[32mBuilding[0m '
|
||||||
elif [ "${1}" = "link" ]; then
|
elif [ "${1}" = "link" ]; then
|
||||||
printf '\e[36;1m[%3d/%d]\e[0m ' "${targetno}" "${ntargets}"
|
printf '[36;1m[%3d/%d][0m ' "${targetno}" "${ntargets}"
|
||||||
printf '\e[36;1mLinking\e[0m '
|
printf '[36;1mLinking[0m '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${2}"
|
echo "${2}"
|
||||||
|
|
Loading…
Reference in a new issue