Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile color output doesn't always work #296

Closed
mikebentley15 opened this issue Oct 23, 2019 · 0 comments · Fixed by #297
Closed

Makefile color output doesn't always work #296

mikebentley15 opened this issue Oct 23, 2019 · 0 comments · Fixed by #297
Assignees
Labels
bug make Involves touching GNU Makefiles

Comments

@mikebentley15
Copy link
Collaborator

Bug Report

Describe the problem
I have seen on some Mac systems that the color output looks very wonky with escape codes not treated properly with echo.

Furthermore, the -e and -n flags to echo are not implemented in all versions of echo.

Suggested Fix
Use tput to gather the binary representation of the color change rather than an escape code that needs to be interpreted.

For the second thing with those flags for echo not being implemented, I suggest using the printf command.

Alternative approaches:
You could probably do something tricky, or some python library. I don't think these approaches will be simpler than the suggested approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug make Involves touching GNU Makefiles
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant