To use ANSI Console in Eclipse, you need to install below plugin.
1. Help > Install New Softwrae
2. Input below URL into Work with:
http://www.mihai-nita.net/eclipse
3. Click ‘Add’
4. And you will know what to do. ;)
The plugin Homepage.
http://mihai-nita.net/2013/06/03/eclipse-plugin-ansi-in-console/