| Summary: | use color codes in output messages | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Ignacio Castaño <castanyo> |
| Component: | Output Views | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED LATER | ||
| Severity: | wishlist | CC: | kajokeji.2013 |
| Priority: | NOR | Keywords: | junior-jobs |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Ignacio Castaño
2005-09-23 09:47:36 UTC
if somebody drops by that wants to implement this, please re-open. KDevelop Version 4.5.1 Using KDE Development Platform 4.11.3 The pcl library (http://pointclouds.org/) uses color console outputs that looks pretty bad in Kdevelop if not readable at all. For exemple in print.cpp (https://github.com/PointCloudLibrary/pcl/blob/master/common/src/print.cpp): void pcl::console::reset_text_color (FILE *stream) { char command[13]; // Command is the control command to the terminal sprintf (command, "%c[0;m", 0x1B); fprintf (stream, "%s", command); } If I check "Use external terminal", it goes well but I can't use the debug mode :-(. I am wondering why the build tab is able to use colors and not the run/debug tab ? The build output view does not interpret color codes, but basically greps for keywords and then just colors the full line if it thinks its an error/warning/... Would it be possible then to remove all the color codes (like "0x1N[0;m") before printing to the run tab in order to be able to read the messages without any color ? Indeed as the color codes are mis-interpreted, messages are not readable at all. I believe boost uses the same kind of code colors, so this issue should concern many peoples. Git commit 9991a24e3d543f015380ce4f8c3d2dfca377aba4 by Kevin Funk. Committed on 17/12/2015 at 11:58. Pushed by kfunk into branch '5.0'. OutputView: Filter ANSI sequences Summary: Hardcoding the filter function in the outputmodel for now. Not making this a filter strategy on purpose, it doesn't fit into the current architecture. Stripping ANSI sequences is merely a QString->QString transformation, while the filtering strategies do a QString->FilteredItem transformation. Related: bug 321939 FIXED-IN: 5.0 Subscribers: apol, kdevelop-devel Projects: #kdevelop Differential Revision: https://phabricator.kde.org/D660 M +15 -1 outputview/outputmodel.cpp M +63 -0 util/kdevstringhandler.cpp M +6 -0 util/kdevstringhandler.h M +19 -0 util/tests/test_stringhandler.cpp M +2 -0 util/tests/test_stringhandler.h http://commits.kde.org/kdevplatform/9991a24e3d543f015380ce4f8c3d2dfca377aba4 |