Skip to content

add -x flag for hexadecimal output#1

Open
shmibs wants to merge 3 commits into
djpohly:masterfrom
shmibs:master
Open

add -x flag for hexadecimal output#1
shmibs wants to merge 3 commits into
djpohly:masterfrom
shmibs:master

Conversation

@shmibs

@shmibs shmibs commented Feb 26, 2018

Copy link
Copy Markdown

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

djpohly commented Feb 26, 2018

Copy link
Copy Markdown
Owner

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

shmibs commented Feb 26, 2018

Copy link
Copy Markdown
Author

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

shmibs commented Feb 26, 2018

Copy link
Copy Markdown
Author

...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

vaygr commented Dec 15, 2020

Copy link
Copy Markdown

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