0

I am using eclipse IDE latest version with this plugin:

https://github.com/mihnita/ansi-econsole

or

https://mihai-nita.net/java/

and

https://mihai-nita.net/wp-content/uploads/2013/06/AECSample.jpg

And like you can see in the picture the plugin should support italic/bold/underline

But I can not make it work. I can not understand why bold, italic and underline does not work I am able to print colored text with ANSI plugin.

I checked here: How to print color in console using System.out.println?

    System.out.println("Hello \u001b[1;31mred\u001b[0m world!");
    System.out.println("\033[0;1m" + "Bold text");
    System.out.println("\u001B[1m" + "I am bold");

I want to see italic/underline and bold on console output texts but right now only colors and background colors worth with the plugin

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
David
  • 145
  • 1
  • 3
  • 13
  • Not all Consoles can work with these codes or give unexpected results and therefore it's basically a waste of time (in my opinion). If you want to add a little pizazz to your console application then perhaps consider displaying a JOptionPane. You can use HTML to format your text whichever way you like. – DevilsHnd - 退職した Aug 01 '19 at 01:41
  • @DevilsHnd But the plugin says it is for eclipse users and if you look at the image you can clearly see bold/italic and underline examples on eclipse console – David Aug 01 '19 at 07:41
  • Oh..I'm sorry. I was under the assumption that you wanted to utilize these codes for an application you are developing for anyone to use rather than everyone needing Eclipse for which to properly use the app. I assume you've read this [SO Thread](https://stackoverflow.com/questions/6286701/an-eclipse-console-view-that-respects-ansi-color-codes). This sort of thing will always give issues (imho). – DevilsHnd - 退職した Aug 01 '19 at 08:17
  • But you can see in the SO Thread link you gave people able to make it work. My problem is that color is working with this plugin on my eclipse console but bold/underline and italic does not and I do not know why or what am I doing wrong – David Aug 01 '19 at 08:23
  • I supported, see first screenshot at https://marketplace.eclipse.org/content/ansi-escape-console#group-screenshots. But often the bold font is not very "bold" (and if the plugin is configured "Windows style", with bold => intense, that makes it even less visible. Please file a bug if indeed is not bold. – Mihai Nita Dec 21 '20 at 00:18

0 Answers0