This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218851

Summary: Hide unsupported escape sequences in output
Product: platform Reporter: xgathos
Component: Output WindowAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED FIXED    
Severity: normal CC: tmysik, vriha
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description xgathos 2012-09-22 23:02:44 UTC
[ BUILD # : 201209220001 ]
[ JDK VERSION : 1.7.7 ]


The new feature of colored output doesnt strip the ansi escape codes from
output

as example:
[2KOK 
now shows a green background. but the [2K should be removed from output
Comment 1 Jaroslav Havlin 2012-09-24 08:02:53 UTC
Please, which application produces this output? Thanks.
Comment 2 xgathos 2012-09-24 09:39:01 UTC
PHPUnit 3.6.11
with colors="true" in configuration file
Comment 3 Jaroslav Havlin 2012-09-25 13:36:20 UTC
> PHPUnit 3.6.11
> with colors="true" in configuration file
Thank you.

The process outputs this character sequence:
"\u001B[30;42m\u001B[2KOK (1 test, 1 assertion)"

There are two control sequences:
 - "\u001B[30;42m"  - changes the color
 - "\u001B[2K"      - clears entire line (not supported)

The displayed ANSI escape codes are not related to background color, and IDE does not support them.

But we may at least hide them.
Renaming and changing to enhancement.
Comment 4 Jaroslav Havlin 2013-02-12 16:02:25 UTC
*** Bug 226023 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Mysik 2013-02-13 09:05:26 UTC
Could we change it to defect and have it fixed for the next NB version please? We now use colored PHPUnit output by default so it would be nice if it could be fixed.

Thanks.
Comment 6 Tomas Mysik 2013-02-27 10:05:58 UTC
*** Bug 226757 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Havlin 2013-03-11 16:51:39 UTC
http://hg.netbeans.org/core-main/rev/8293ccf1d9c4
Fixed. Please verify. Thanks.
Comment 8 Quality Engineering 2013-03-13 02:10:48 UTC
Integrated into 'main-golden', will be available in build *201303122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8293ccf1d9c4
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #218851: Hide unsupported escape sequences in output