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 support to specify colors using RGB ? #193

Open
edi9999 opened this issue Jan 14, 2022 · 1 comment
Open

Add support to specify colors using RGB ? #193

edi9999 opened this issue Jan 14, 2022 · 1 comment

Comments

@edi9999
Copy link

edi9999 commented Jan 14, 2022

FZF seems to be handling this :

https://github.com/junegunn/fzf

--color 'fg:#bbccdd,fg+:#ddeeff,bg:#334455,preview-bg:#223344,border:#778899'

Currently, icdiff only accepts a small subset of all possible colors.

It could also be done with ANSI codes but I would find it even cooler to simply use RGB which is easier to parse for a human.

@edi9999
Copy link
Author

edi9999 commented Jan 14, 2022

The code for the handling of ansi codes in FZF (in golang) is here :

https://github.com/junegunn/fzf/blob/261d3d3340a9afa9925ec693a47ebe632d6870cb/src/ansi.go

Maybe one could start from this instead which is in Python :

https://github.com/cbouy/asciipainter/blob/master/asciipainter.py#L33

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

1 participant