STS hangs and uses 100% CPU when console is open with ANSI console enabled and dark theme #306
Description
When using the dark theme in STS and having console open, the IDE starts to hang and becomes unresponsive, and uses up the entire CPU core. This happens regardless if any app is running, as long as there is enough text in the console.
Switching away from the console tab, closing or clearing the console makes the IDE work normally, but as soon as there is more than ~10 lines in the console it becomes unresponsive again.
Disabling the ANSI console resolves the hang problem, but the console output becomes ugly and hard to read with plenty of mojibake wherever there's supposed to be a color change.
The issue seems to be between the dark theme and ANSI console, perhaps they are clashing by each trying to set the console's color in a loop? However, the issue is reported here and the developer of ansi-econsole suggests that it may be an issue with STS because he can't reproduce it in vanilla Eclipse with either theme.
Version info:
Spring Tool Suite 3.9.5.201807031753-RELEASE-e48 org.springsource.sts.ide
Ansi Console 1.3.3.201605090119 net.mihai-nita.ansicon.feature.group