Colored output for err(3) et al. I'm not yet sure if I like it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 27279 Build 25541: arc lint + arc unit
Event Timeline
lib/libc/gen/err.c | ||
---|---|---|
76 | May I propose following an existing convention (for example see ls) by checking for CLICOLOR instead of introducing yet another environment variable for color. |
lib/libc/gen/err.c | ||
---|---|---|
76 | But then people who do have CLICOLOR wouldn't have a way to disable it. But yeah, I see your point. |
Comment Actions
teemo. Coding the ansi escape sequences is really a bad idea.
lib/libc/gen/err.c | ||
---|---|---|
83 | This hard coded the ansi escape sequences rather than singing termio. |
Comment Actions
Indeed, but that would mean making libc depend on ncurses. And it still doesn't answer whether the idea actually makes sense :-)