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 267566 - Add support for bright foreground/background ANSI colors
Summary: Add support for bright foreground/background ANSI colors
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-13 06:09 UTC by _ gtzabari
Modified: 2016-08-13 13:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2016-08-13 06:09:40 UTC
Product Version: NetBeans IDE Dev (Build 201608090002)
Java: 1.8.0_102; Java HotSpot(TM) 64-Bit Server VM 25.102-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_102-b14
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

I am outputting the following text to the output tab:

ESC[37;42mAddedESC[37;41mRemoved
ESC[37;1;42mAddedESC[37;1;101mRemoved

The text is supposed to render as follows:
1. [gray foreground, dark green background] [gray foreground, dark red background]
2. [white foreground, dark green background] [white foreground, light red background]

This works properly in the Windows 10 console and in ConEmu, but in Netbeans "[37;1;101m" renders with a green background instead of a light red background.
Comment 1 _ gtzabari 2016-08-13 13:58:56 UTC
It looks like these colors are called AixTerm color codes. They are used by most terminals and Windows 10. See http://unix.stackexchange.com/a/93872/60809 and http://superuser.com/a/1105718/57662