-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 selection is drawn above foreground #47523
Comments
Maybe it is supposed to be this way, just the tooltip that this color needs to be opaque is missing. Compare with |
@tweakimp |
Upstream issue: xtermjs/xterm.js#720 You need to use a transparent selection color currently which is less than ideal. |
Yes, eventually this "background" really needs to be in the background, not painted on top of everything else. As it is, the best you can do with it is to use transparency to make it look as if you've put colored plastic tape over your selection, which dulls it and changes its foreground color. |
is it possible to transition from export interface IColorSet {
foreground: IColor;
background: IColor;
cursor: IColor;
cursorAccent: IColor;
selection: IColor;
selectionForeground?: IColor;
selectionBackground?: IColor;
ansi: IColor[];
} I would be happy to work on that in xtermjs/xterm.js (issues/720) but need to know how it must be implemented... I was, in fact, trying to find a way to change the color of the selected text (and maybe the border) as stated in zeit/hyper -> Add a config option for selected text color setting (issues/2934) |
@Luxcium we probably do want selection foreground eventually be customizable as well, that way the user can choose their preferred style as set fg/bg colors has some great accessibility benefits. But we probably shouldn't move on this issue until the canvas renderer is removed (and replaced with xtermjs/xterm.js#1790) |
@Tyriar any news on this issue? The one you linked is merged, but this issue is still a problem. |
@tweakimp we're not using the webgl renderer yet |
This issue is blocked on the webgl renderer being stabilized, see the issue query: https://github.com/xtermjs/xterm.js/issues?q=is%3Aopen+is%3Aissue+label%3Aarea%2Faddon%2Fwebgl |
Issue Type: Bug
When selecting text in the terminal, the text is behind the selection background. If the value for the selection background is opaque, then the text is invisible. I'd expect it to be behind the text like it is in the editor's color configuration.
With an opaque color:
With a more transparant color:
VS Code version: Code 1.22.1 (950b8b0, 2018-04-06T00:24:49.616Z)
OS version: Linux x64 4.15.14-1-ARCH
System Info
Extensions (3)
The text was updated successfully, but these errors were encountered: