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
Added simple ANSI color escape sequence support to compiler message window #44
Conversation
I'm not fan of the feature, mostly because Geany can already parse compiler output -- and not handling color escape sequence should be harmless. Moreover, if we actually wanted the feature I think it would require to
But again, I'm really not sure this is a good idea. If we want more coloring I guess we might simply color according to the parsing already present. |
I think at the very least it should strip out the color sequences, they're ugly... and if you go to all that trouble, - Ed
|
@b4n is that a "no we won't merge this"? If so, maybe just close it. I'm impartial to this change FWIW, but stripping out the escape sequences seems to make sense, assuming it works for stuff like colorgcc. |
Which tool forcefully generates color sequences? Tools I know that have a colored output are clever enough to check whether the terminal they are running on supports them, so don't mess up Geany's msgwindow. Maybe the tool would benefit from being fixed so it can run on non-ANSI colors aware terminals. |
Do a Build>Make in the directory of the following Makefile: foo:
@echo supports `tput colors` colors I see |
I don't know, but e.g. |
My build system outputs ANSI-colorized status messages, this gets them working when building under Geany (only works for whole lines which start with "\x1b[", and only colorizes based on that first escape sequence).