Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging Output in Eclipse IDE Does not format the markup #47

Closed
krebznet opened this issue Jun 9, 2020 · 1 comment
Closed

Debugging Output in Eclipse IDE Does not format the markup #47

krebznet opened this issue Jun 9, 2020 · 1 comment

Comments

@krebznet
Copy link

krebznet commented Jun 9, 2020

Hello,
I believe this is a limitation of the eclipse console but when I'm trying to build an app using JCDP the output in the console shows up something like the snippet below. Does anyone know if there is a workaround to seeing your formatted output in a IDE without having to build/export the compiled jar of my app every-time? Thanks. - Krebznet

�[37;44mColoredPrinter | level: 0 | timestamping: false | Attribute: NONE | Foreground color: WHITE | Background color: BLUE�[0m
�[37;44mThis printer will always format text with WHITE font on BLUE background.�[0m
�[7;37;44mFrom now on, that format is reversed.�[0m
ColoredPrinters do not affect System.* format.
�[7;37;44mEven if�[0m you mix �[7;37;44mthe two.�[0m
�[33m2020-06-09 12:29:15 This printer displays timestamps and warning messages.�[0m
�[36m2020-06-09 12:29:15 And this printer can be used for info messages.�[0m
�[mThis example used JCDP 4.0.0 �[0m�[1;33;42m MADE �[0m�[1;33;41mIN PORTUGAL�[0m
�[mI hope you find it useful ;)�[0m

@dialex
Copy link
Owner

dialex commented Jun 10, 2020

Hey Duncan!
I suspect that's because Eclipse's terminal doesn't support ANSI codes. There's not much I can do, because this implements uses the standard ANSI codes. This is a limitation of Eclipse.

I googled a bit and there's more people with your issue on Eclipse, even for other libs like Jansi. Several users recommended this "ANSI Escape in Console" extension. I found fewer references to this other extension.

As an alternative you can start using IntelliJ Community Edition (which is also free/open) 😏 😏

I hope this helps you solve the issue 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants