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

allow setting tcell prompt color #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akerl
Copy link

@akerl akerl commented Feb 19, 2024

I'd originally opened this as #13 ages ago, back before this library updated to tcell.

I picked it up again while updating dependencies in my fork.

In the original PR, we'd talked about encapsulating the set of colors in go-fuzzyfinder to avoid leaking the underlying terminal library through to the option struct. Looking at tcell, I'm not sure I see a way to cleanly do that. Because tcell is basically taking a uint64, and is itself already supporting any standard / xterm color, the set of colors it accepts is massive. I could make the function take a uint64 and cast it, but that doesn't actually feel cleaner: I'd be leaking tcell's methodology but in a less clear way.

Curious for your thoughts.

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.

1 participant