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

(v2) feat: add WithRequestBackground option to query terminal background c… #1211

Open
wants to merge 2 commits into
base: v2-exp
Choose a base branch
from

Conversation

aymanbagabas
Copy link
Member

…olor

This commit adds a new option to the program, WithRequestBackground, which will send a request to the terminal to query the background color of the terminal.

…olor

This commit adds a new option to the program, `WithRequestBackground`, which
will send a request to the terminal to query the background color of the
terminal.
@aymanbagabas aymanbagabas changed the title feat: add WithRequestBackground option to query terminal background c… (v2) feat: add WithRequestBackground option to query terminal background c… Oct 29, 2024
@aymanbagabas
Copy link
Member Author

I don't think this option makes sense, as it would create two different workflows to request the background color, one through calling tea.RequestBackgroundColor in Init and using this option in when creating the program.

@caarlos0
Copy link
Member

I think I agree.

Leaving it in the model's init function makes more clear that is a dependency of that model, and the flow is also clearer I think.

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