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
⌛ This post has been reserved for your question.
Hey @StackPancakes! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton 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.
What is this
Ansi class you are using? You are not showing it, nor do I see any import.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💤 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.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?
the only issue is only from linux
windows seem to work fine
💤 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.