-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: manually query terminal for background color
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
- Loading branch information
1 parent
c8e32d1
commit 2f5f1df
Showing
3 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters