-
Notifications
You must be signed in to change notification settings - Fork 48
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
Working but no color #3
Comments
I noticed this problem on Linux systems. It comes down to line 19 being a special case for macOS, and it doesn't work right on Linux/BSD/etc. Uncommenting line 18 and removing line 19 might do the job, but I haven't tested, as I rewrote the whole test to work across other shells. |
Hi, It doesn't work on Ubuntu 18.04 TNX |
I ended up forking and rewriting a bit to make it work on all POSIX shells and remove the Mac OS X-isms. I converted it to use tput for colors, which abstracts the color code so that it works on any system with a correctly configured termcap (and the tput command). My fork is here: https://github.com/swelljoe/slog My fork doesn't have exactly the same semantics, so you'll need to modify your code a little, if you've been using log4bash. |
For example, here is my simple script using log4bash.sh
and the output is -
working fine, but no colo(u)r.
Thanks in advance.
The text was updated successfully, but these errors were encountered: