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

Move ColorSystem into Capabilities #343

Closed
wischi-chr opened this issue Apr 4, 2021 · 0 comments · Fixed by #372
Closed

Move ColorSystem into Capabilities #343

wischi-chr opened this issue Apr 4, 2021 · 0 comments · Fixed by #372
Labels

Comments

@wischi-chr
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It's not a problem with the behavior but with how the Profile is currently structured.

Describe the solution you'd like
The ColorSystem property should be moved to the Capabilities class because it really represents one of the capabilities of the console.

The class RenderContext makes this even more evident. Because ColorSystem is not inside Capabilities / IReadOnlyCapabilities it results in a (IMHO) strange egde case where it has to be passed in as a separate constructor parameter and stored in a separate property inside RenderContext.

Describe alternatives you've considered
The alternative would be to leave it as it is and I have to live with the fact that it's not implemented how I would do it 😅

phil-scott-78 pushed a commit that referenced this issue Apr 14, 2021
* Moves ColorSystem from Profile to Capabilities
* Renames Tty to IsTerminal
* Adds IAnsiConsoleOutput to make output more flexible

Closes #343
Closes #359
Closes #369
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants