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

Add profile support #231

Closed
patriksvensson opened this issue Jan 14, 2021 · 0 comments · Fixed by #237
Closed

Add profile support #231

patriksvensson opened this issue Jan 14, 2021 · 0 comments · Fixed by #237
Assignees
Labels

Comments

@patriksvensson
Copy link
Contributor

patriksvensson commented Jan 14, 2021

There is a lot of duct-tape in Spectre.Console to handle the differences between different environments.

It would be great if there was some kind of profile support that contained all the detected settings and capabilities from a specific environment (Windows, Linux, GH actions, TeamCity) and also made it overridable by the consumer of Spectre.Console.

For example:
GitHub actions support ANSI, but they're not a TTY so cursor movement should not be used. They also don't support links.
Since GitHub actions isn't a TTY, we can't query the buffer width so we always default to 80 columns which aren't really what we want to do.

The same goes with other environments such as running Windows apps under WSL. See #216 for more information

It would be great if components could query the supported features of the current environment via a profile on RenderContext or similar.

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.

1 participant