You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
the printlines do not show color when running the program from a compiled jar via command prompt. java -jar jcolor.jar it printlines the escape characters but not the color
I noticed calling echo with an ansi escape sequence seems to fix this. If the terminal is command prompt you should apply a fix similar to this new ProcessBuilder(new String[]{"cmd", "/c", "echo", "\u001B[42m A TEST�[0m"}).inheritIO().start().waitFor();
The text was updated successfully, but these errors were encountered:
If you actually read my issue I have a fix for it without screwing up admin privileges and reg editing the os which can break things
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Diogo Nunes ***@***.***>
Sent: Sunday, May 29, 2022 9:53:02 AM
To: dialex/JColor ***@***.***>
Cc: jredfox ***@***.***>; Author ***@***.***>
Subject: Re: [dialex/JColor] Doesn't work on command prompt (Issue #69)
Windows Command Prompt does not support ANSI escape codes by default. Check these workarounds<https://github.com/dialex/JColor#troubleshoot>.
—
Reply to this email directly, view it on GitHub<#69 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACKJBMMS6BUIDM2D5FB7E53VMOAE5ANCNFSM5W4OJYNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
The link I shared has 4 workarounds, only one requires reg editing. I would like to avoid a 5th workaround.
Also, does your fix work for Windows, Linux and Mac? I don't want to go back to if (OS == WIN) then X else Y logic.
Describe the bug
the printlines do not show color when running the program from a compiled jar via command prompt.
java -jar jcolor.jar
it printlines the escape characters but not the colorI noticed calling echo with an ansi escape sequence seems to fix this. If the terminal is command prompt you should apply a fix similar to this
new ProcessBuilder(new String[]{"cmd", "/c", "echo", "\u001B[42m A TEST�[0m"}).inheritIO().start().waitFor();
The text was updated successfully, but these errors were encountered: