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 termenv.Output #86

Merged
merged 23 commits into from Sep 20, 2022
Merged

Add termenv.Output #86

merged 23 commits into from Sep 20, 2022

Conversation

muesli
Copy link
Owner

@muesli muesli commented Aug 30, 2022

termenv.Output can be initialized with a custom os.File as an output and
supports auto detection of its capabilities. Alternatively you can also
skip auto detection and create a new instance with a specific profile.

Styles (just like Colors) can now be created for specific profiles, with
the Ascii profile stripping away any applied styling.

muesli and others added 22 commits August 30, 2022 14:28
termenv.Output can be initialized with a custom os.File as an output and
supports auto detection of its capabilities. Alternatively you can also
skip auto detection and create a new instance with a specific profile.

Styles (just like Colors) can now be created for specific profiles, with
the Ascii profile stripping away any applied styling.
This makes using custom termenv.Styles behave backwards compatible:
styles don't get stripped from the default profile, only colors.
support copying text on supported terminals
@muesli muesli added the enhancement New feature or request label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants