star-3daw

Create star-3d geometries from OBJ files
git clone git://git.meso-star.fr/star-3daw.git
Log | Files | Refs | README | LICENSE

commit 288a0fa6df0bfdb4733156c770607b07d06615ef
parent e7e538c20a8fcef4929c31cceb12721a4bdafa16
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 19 Oct 2023 10:40:27 +0200

Updating the escape sequence in messages displayed by "make test"

Some shells (e.g. dash) don't support the '\e' character in printf: the
escape sequence is simply ignored. So we've replaced '\e' with '\033'
in the printf used to display colored messages in "make test". This
should work as expected in all shells.

Diffstat:
MMakefile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -135,9 +135,9 @@ build_tests: build_library src/test_s3daw.d test: build_tests @printf "%s " "test_s3daw" @if ./test_s3daw > /dev/null 2>&1; then \ - printf "\e[1;32mOK\e[m\n"; \ + printf "\033[1;32mOK\033[m\n"; \ else \ - printf "\e[1;31mError\e[m\n"; \ + printf "\033[1;31mError\033[m\n"; \ fi clean_test: