-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support copying text (OSC52) & hyperlinks (OSC8) #80
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great
support copying text on supported terminals
| Windows Terminal | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
|
||
[^vte]: This covers all vte-based terminals, including Gnome Terminal, guake, Pantheon Terminal, Terminator, Tilix, XFCE Terminal. | ||
| Terminal | Alt Screen | Query Color Scheme | Query Cursor Position | Set Window Title | Change Cursor Color | Change Default Foreground Setting | Change Default Background Setting | Copy (OSC52) | Hyperlinks (OSC8) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this starts horizontally scrolling on GitHub, we should think about breaking this up in two tables maybe: standard and advanced feature sets or something.
closing this in favor of #82 |
OSC52 needs to read
$TERM
to determine the terminal. This implements two interfaces,File
andEnviron
, and uses them when creating a newOutput
.