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

add -x flag for hexadecimal output #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add -x flag for hexadecimal output #1

wants to merge 3 commits into from

Conversation

shmibs
Copy link

@shmibs shmibs commented Feb 26, 2018

prints a hex colour code in the typical #RRGGBB form

does not change default behaviour (running without flags returns in integer form), so existing usage should not break

katherine added 3 commits February 25, 2018 17:09
prints a hex colour code in the typical #RRGGBB form
typing too quickly with numb hands
@djpohly
Copy link
Owner

djpohly commented Feb 26, 2018

Thanks for the pull request!

Is there an advantage to doing it in the stint code rather than, say:

stint | xargs -n3 printf '#%02x%02x%02x\n'

The reason I chose decimal output was to make that easy to do. :)

@shmibs
Copy link
Author

shmibs commented Feb 26, 2018

i guess only that it seems a common use-case, and not everyone knows how or thinks to do things like that, judging by a quick search and this thread

@shmibs
Copy link
Author

shmibs commented Feb 26, 2018

...and, as xoris has since been removed from the AUR and grabc (like you'd mentioned in that thread) doesn't actually work consistently, using stint is the easy option that's left to people

@vaygr
Copy link

vaygr commented Dec 15, 2020

I'd second that.

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

Successfully merging this pull request may close these issues.

3 participants