ANSi escape color sequence doesn't print

so this is my code handles stdout, stdin, & stderr for such application, like jshell, nix, etc. but the code doesn't print the colors, for stdout nor stderr, i was wondering where is the issue could be (this program uses jline)
7 Replies
JavaBot
JavaBot3w ago
This post has been reserved for your question.
Hey @StackPancakes! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Madjosz
Madjosz3w ago
What is this Ansi class you are using? You are not showing it, nor do I see any import.
StackPancakes
StackPancakesOP3w ago
ansi just bunch of list of backgrounds and foregrounds but the code that i posted is about output stdout and stderr from the file like jshell nix etc. some app doesn't print colored text compared to outside shell like bash
JavaBot
JavaBot3w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Madjosz
Madjosz3w ago
Some shells don't support colored output. Some printers don't support writing the escape sequences correctly. There are a multitude of reasons why it could not work. None of them are visible in the code snippet you posted. E.g. in the JShell I can color the output, in the Python shell it doesn't work on my computer. Or did it only work in the WSL and not in CMD?
StackPancakes
StackPancakesOP3w ago
the only issue is only from linux windows seem to work fine
JavaBot
JavaBot3w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?