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

Feature request: adjustable color and width #1

Open
nitefood opened this issue Nov 30, 2020 · 8 comments
Open

Feature request: adjustable color and width #1

nitefood opened this issue Nov 30, 2020 · 8 comments

Comments

@nitefood
Copy link

First of all: this is amazing!

It would be nice to be able to use a different color for graphing, and to specify a maximum width for the graph.

Thanks for this gem!

@aantn
Copy link
Owner

aantn commented Nov 30, 2020 via email

@aantn
Copy link
Owner

aantn commented Dec 4, 2020

Any interest in adding the color feature? I can point you at the exact lines of code to modify.

@nitefood
Copy link
Author

nitefood commented Dec 5, 2020

I'm sorry, I have really zero experience with Rust, otherwise I would've been glad to contribute

@aantn
Copy link
Owner

aantn commented Dec 5, 2020

No worries. What command line flags would you like to see for the color? How would you like to specify it?

@nitefood
Copy link
Author

nitefood commented Dec 5, 2020

well I think the standard [-c|--color] would be spot on. And regarding how to specify it, I guess the standard xterm 256 color codes would be more than plenty for everybody. If you want to go the extra mile, support to specify them by their Xterm name (ie black, green, etc) would be awesome!

@aantn
Copy link
Owner

aantn commented Dec 5, 2020 via email

@nitefood
Copy link
Author

nitefood commented Dec 5, 2020

Perhaps specifying --color multiple times, or maybe specifying multiple color codes (comma/space separated) with a single --color option. I'm not sure how rust handles cmdline options, but I guess it shouldn't be mandatory to specify a color for every command output. That way, if I specify one color and run two commands, only the first one would be colored, while the second one should be left at the default. --color black white or --color black,white make for simpler and more intuitive usage, than, say, --color1 black --color2 white etc. IMHO.

@nitefood
Copy link
Author

nitefood commented Dec 5, 2020

also nice to have: a --default-color switch that could be used if I just want to change the main theme color regardless of the number of commands passed

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