-
Notifications
You must be signed in to change notification settings - Fork 956
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
Feature request: Add output coloring, option to disable #1
Comments
Hey, i'd like to work on this one,any good advice for me? |
Great!
I think this isn't too tricky, just find the color characters for the
shell, and use different colors for different parts of the output. If
there's anything I'd want to correct about your pull request, I'll tell
you.
…On Wed, Apr 24, 2019 at 3:48 AM leetao ***@***.***> wrote:
Hey, i'd like to work on this one,any good advice for me?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAN3SXKTQ5PALRLJGKATT3PR6U6JANCNFSM4HHLPUJA>
.
|
I hava already fix this one,you can see my last commit #1, but got no idea about how to test color. would you mind giving me some help,thx~ |
Great, can you submit a pull request to this repo? I tried making sense of your code but couldn't separate your commits from mine on your repo. |
i made the pr~~O(∩_∩)O |
This PR is up for grabs again. It's a good one, I hope someone takes it. |
I'll give it a shot. |
What about doing this with pycolorama? @Mark-Jung lemme know if you want help, definitely looking forward to this PR. |
I haven't looked into this yet, but I will asap. Have been swamped with work this week. |
@AtHeartEngineer : Alex is correct, I prefer to avoid dependencies for this project. |
Definitely understand that. It could be an optional dependency, if you want color. Just a thought, figured colorama did a lot of the cross-compatibility work. |
I know @cool-RR is not interested in maintaining optional dependencies either, I tried that too in #71 I tried to make this project extensible in #103 so that another project could be built on top of it with extra features through dependencies, but that's been rejected. I'd already written some code using Pygments which added syntax highlighting in the terminal. |
Anyone reading this: This feature is up for grabs for anyone interested in implementing it. |
My version of PySnooper is out and it is colorful! I'd love to hear people's thoughts about the design and use of color here. It seems that colorama is not needed for Windows support after all, which is good because it only supports a few colors anyway. Windows 10 has had support for ANSI codes in cmd for two years now, you just have to enable it: https://stackoverflow.com/a/36760881/2482744 That's what I'm doing. I don't know what happens in other terminals, I'm not a Windows user. So PySnooper can still accomplish this without dependencies. If you want syntax highlighting, maybe check what https://github.com/Qix-/better-exceptions is doing for ideas. |
It would be great to have color coding under windows as well!
|
Oh, I forgot to close this issue when i implemented this functionality. I'm closing it now. @skjerns can you please open a separate issue for implementing this functionality on Windows? And link these two issues to each other. if you'll be interested in working on it, then you should know two things: 1. I'll want it done with no dependencies, so if you use anything from Colorama, you'll have to copy-paste some code. And 2. If you'll be interested in implementing, I'll try to figure out what was the original reason I didn't implement on Windows. Let me know. |
No description provided.
The text was updated successfully, but these errors were encountered: