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

fix: manually query terminal for background color #429

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

aymanbagabas
Copy link
Member

This drops the dependency on github.com/charmbracelet/x/input and github.com/erikgeiser/coninput by manually parsing the terminal response to the background color query using ansi.

Since we moved x/input to Bubble Tea, and the code is no longer maintained, we need a different approach to query the terminal for the background color. This is basically doing the same thing as before, but manually parsing the response instead of using the x/input package.

Fixes: charmbracelet/x#248
Supersedes: charmbracelet/x#249

This drops the dependency on `github.com/charmbracelet/x/input` and
`github.com/erikgeiser/coninput` by manually parsing the terminal
response to the background color query using `ansi`.

Since we moved `x/input` to Bubble Tea, and the code is no longer
maintained, we need a different approach to query the terminal for the
background color. This is basically doing the same thing as before, but
manually parsing the response instead of using the `x/input` package.

Fixes: charmbracelet/x#248
Supersedes: charmbracelet/x#249
@aymanbagabas aymanbagabas merged commit dee5c67 into v2-exp Nov 12, 2024
19 checks passed
@aymanbagabas aymanbagabas deleted the v2-no-input branch November 12, 2024 21:44
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.

2 participants