OSCLinkProvider
#5068
Replies: 2 comments
-
See docs: Lines 157 to 168 in f77a763 |
Beta Was this translation helpful? Give feedback.
0 replies
-
yes, sorry but my typescript/javascript level is zero , |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the implementation in xterm.js of the OSCLinkProvider :
https://github.com/xtermjs/xterm.js/blob/master/src/browser/OscLinkProvider.ts
if there isn't a linkHandler it uses a defaultActivate where a STRONG WARNING push up appares, that advice you about the risk
if you open the url ...
activate: (e, text) => (linkHandler ? linkHandler.activate(e, text, range) : defaultActivate(e, text))
There is an example on how implement a linkHandler to prevent this on a selected list of url ?
Example :
in my terminal :
than i have a link to https://xtermjs.org/ that without the use of linkHandler it push out :
Beta Was this translation helpful? Give feedback.
All reactions