digitalmars.D.bugs - [Issue 12273] New: 'dmd -color' flag to colorize error/warning messages
- d-bugmail puremagic.com (24/24) Feb 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12273
- d-bugmail puremagic.com (11/11) Feb 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12273
- d-bugmail puremagic.com (11/11) Feb 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12273
- d-bugmail puremagic.com (12/12) Feb 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12273
- d-bugmail puremagic.com (13/13) Feb 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12273
- d-bugmail puremagic.com (12/12) Feb 28 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12273
https://d.puremagic.com/issues/show_bug.cgi?id=12273 Summary: 'dmd -color' flag to colorize error/warning messages Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timothee.cour2 gmail.com 12:26:50 PST --- clang and many other compilers have colorized error messages, it improves a lot readability such as pinpointing where the error is etc. I suggest having 'dmd -color' flag to colorize error/warning messages as well. As we've seen with the recent introduction of '-vcolumns' flag, simple things like this improve quite a bit the experience. This is trivial to implement on posix with terminal codes (I'm using it myself for my own logging), and should be doable on windows as well (SetConsoleTextAttribute?). -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 27 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12273 Vladimir Panteleev <thecybershadow gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow gmail.com 22:28:50 EET --- I've done this for myself as a filter program: http://blog.thecybershadow.net/2013/07/27/colorize-your-compilers-output/ -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 27 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12273 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 12:37:25 PST --- Seems like something that should or could be done in RDMD, especially since I've seen a few colorizing console libraries implemented in D. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 27 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12273 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla digitalmars.com 13:03:22 PST --- It's a good idea. Note to implementer: You'd have to check to see if the output stream is a file or a tty, and not do the colorizing for the file. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 27 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12273 Timothee Cour <timothee.cour2 gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timothee.cour2 gmail.com 13:06:33 PST --- Using a postprocessor seems fragile/ambiguous. Come to think of it probably the most flexible solution would be to have a flag to output with markup (json for example), that can later be used by tools to print as html/terminal color codes/etc. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 27 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12273 Nick Sabalausky <cbkbbejeap mailinator.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbkbbejeap mailinator.com 14:32:45 PST --- Instead of a flag, wouldn't it be better to just do what the unixy tools do and automatically colorize if-and-only-if it detects it's outputting to an interactive shell? (Not sure whether that's doable on Windows though.) -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 28 2014