replaced \e with proper ^[

This commit is contained in:
Noah Swerhun 2021-12-23 23:14:07 -06:00
parent ab67878f9a
commit 87518bb160

View file

@ -35,11 +35,11 @@ export_vars() {
}
info() {
printf "\e[34;1m[*]\e[21m %s\e[0m\n" "$@"
printf "[*] %s\n" "$@"
}
err() {
printf "\e[31;1m[!]\e[21m %s\e[0m\n" "$@"
printf "[!] %s\n" "$@"
}
gen_makefile() {
@ -97,7 +97,7 @@ clean() {
run() {
build
printf '\e[36;1mRunning\e[0m %s\n' "./${TARGET}"
printf 'Running %s\n' "./${TARGET}"
"./${TARGET}"
}
@ -113,11 +113,11 @@ __progress__() {
rtargets="$(make -f "${MAKEFILE}" -e "${TARGET}" -n | grep "^${CC}" | wc -l)"
targetno=$((${ntargets} - ${rtargets} + 1))
if [ "${1}" = "object" ]; then
printf '\e[35;1m[%3d/%d]\e[0m ' "${targetno}" "${ntargets}"
printf '\e[32mBuilding\e[0m '
printf '[%3d/%d] ' "${targetno}" "${ntargets}"
printf 'Building '
elif [ "${1}" = "link" ]; then
printf '\e[36;1m[%3d/%d]\e[0m ' "${targetno}" "${ntargets}"
printf '\e[36;1mLinking\e[0m '
printf '[%3d/%d] ' "${targetno}" "${ntargets}"
printf 'Linking '
fi
echo "${2}"