将粗体文本打印到控制台输出

时间:2019-07-31 23:06:45

标签: java ansi

我正在与此插件一起使用eclipse IDE最新版本:

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

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

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

就像您在图片中看到的那样,该插件应支持斜体/粗体/下划线

但是我无法使其工作。 我不明白为什么粗体,斜体和下划线不起作用,我能够使用ANSI插件打印彩色文本。

我在这里检查过: 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");

我想在控制台输出文本上看到斜体/下划线和粗体,但目前只有插件值得使用的颜色和背景颜色

0 个答案:

没有答案