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

Support colored output #99

Closed
prcastro opened this issue Jul 5, 2023 · 4 comments
Closed

Support colored output #99

prcastro opened this issue Jul 5, 2023 · 4 comments

Comments

@prcastro
Copy link

prcastro commented Jul 5, 2023

I expected the System.out console to support colors, but apparently it does not. The result is that my test suite and my code spills out colored debug messages, but I cannot see them properly on Sublime Text. Worse than that: the output has the color codes and it makes the output to format weirdly.

Screenshot 2023-07-05 at 15 55 16

Why don't we have a separate panel with the REPL, as we have with other editors/plugins, and keep the inline results for when it helps? It would solve a lot of the current problems (including what was mentioned in #94). Also, the blog post mentioned that an advantage is "there’s no extra panel to manage", but actually there is: today I already have to manage Sublime Console to check the output of my files, and sometimes it even prints unrelated stuff (like debug messages from plugins)!

In other words: as a user I have a lot of headaches because of Sublime Console, and no benefits compared to other solutions.

@tonsky
Copy link
Owner

tonsky commented Jul 6, 2023

Well, if I implemented REPL console myself, it would support even less features than whatever terminal you are using now. Plus, right now you have a choice of terminal. Have you trying using one that uses colors?

@prcastro
Copy link
Author

prcastro commented Jul 6, 2023

What do you mean choice of terminal? I just start a nREPL on a separate terminal, but all the rest is done entirely on Sublime (inline results + stdout on console without colors). I don't see anything being output on my terminal window.

@tonsky
Copy link
Owner

tonsky commented Jul 6, 2023

That’s raw nREPL, right? It has the worst support. Other REPLs do not capture output, so you can see your stdout in the original terminal where you started the repl. That’s the mode I use and the mode this was designed around

@tonsky
Copy link
Owner

tonsky commented Mar 12, 2024

Ok, colors should now work for Raw nREPL:

Screenshot 2024-03-12 at 15 29 13

@tonsky tonsky closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants