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
Terminal link tooltip location is wrong under the DOM renderer #50128
Comments
I also encountered this problem on Ubuntu 16.04, underline is not displayed on std input , and std output for Terminal. Hope can be fixed. Version 1.24.1 |
Hi! After some testing I found that the problem (regarding tooltip location) seems to be that, when I believe this is because the DOM element which fires the event is the In order to solve it, I added @Tyriar, do you think it is a good solution? I can make a PR, if you want. Edit: Those changes should be made on the |
Regarding the underline don't appearing I'm trying this solution https://github.com/agurodriguez/xterm.js/commit/be4142d79582765600229103cb7a1e1bc2ac9058, and it seems to work (I'm going to sleep right now, but tomorrow I'll make some testing). Do you think it's a feasible solution? |
@agurodriguez , we probably don't want to handle the tooltip location in xterm.js since xterm.js should just be providing all the info it has in the mouse event without making specific assumptions about how that info will be used. I'll let @Tyriar comment on the underline 😊 |
@agurodriguez I made some comments on the underline in that commit https://github.com/agurodriguez/xterm.js/commit/be4142d79582765600229103cb7a1e1bc2ac9058, looks pretty close to what we're after. I created xtermjs/xterm.js#1704 to track this, a PR would be fantastic! You would also want to remove the line in xterm.d.ts that says link underlines are not supported. |
Underline don't appearing was fixed in xtermjs/xterm.js#1705 We should wait for |
@agurodriguez I've already pulled in your changes, we'll close this off when #59060 is merged. |
Before the y from getCoords could be -1, a ceil call was also causing a single pixel offset in each dimension Related microsoft/vscode#50128
PR out upstream which should fix this: xtermjs/xterm.js#1716 |
I can no longer reproduce. |
The underline also isn't appearing
The text was updated successfully, but these errors were encountered: