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

Blinking cursor is broken on transparent background #3886

Open
eldskald opened this issue Jun 21, 2023 · 4 comments
Open

Blinking cursor is broken on transparent background #3886

eldskald opened this issue Jun 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@eldskald
Copy link

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

Tried on Mutter and Awesome.

WezTerm version

20230408-112425-69ae8472 and 20230619-104421-c1f49509 (nightly)

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

The cursor isn't actually blinking, it's just switching colors from cursor_bg to background and it becomes visible when you set a transparent background or a background image. It's easier to notice on block styled cursors but it's the case with all cursors.

To Reproduce

Just set a cursor style to any blinking one and either set your window_background_image to some image or window_background_opacity to anything smaller than 1. You just need a background that can contrast from whatever's setup as your background color.

Configuration

window_background_opacity = 0.8,
audible_bell = 'Disabled',
default_cursor_style = 'BlinkingBlock',
cursor_blink_ease_in = 'Constant',
cursor_blink_ease_out = 'Constant',
cursor_blink_rate = 500,

Expected Behavior

The cursor should switch from being visible to being invisible, as in, render the cell as it if the cursor wasn't there instead of just coloring the cursor background.

If this is intentional, there should at least be an option to make it work like this.

Logs

No response

Anything else?

No response

@eldskald eldskald added the bug Something isn't working label Jun 21, 2023
@wez
Copy link
Owner

wez commented Jul 10, 2023

@eldskald
Copy link
Author

Just tried it now and it didn't really helped. Reading the description, I don't think it should as it mentions it only changes what the cursor uses for it's foreground and background colors, which only matter when the cursor is showing up but problem are the colors when it's blinked out.

@daricoder
Copy link

daricoder commented Aug 4, 2023

I can confirm that with the settings default cursor_style = "BlinkingBlock" and window_background_opacity = 0.5 the cursor is made background color and not transparent. Also use the settings force_reverse_video_cursor = true , and force_reverse_video_cursor = false and the problem persists it never becomes transparent only black

weztermtest.mp4

@juanmartin8a
Copy link

Same issue here. When it blinks the cursor's background color changes to the color of the background instead of turning transparent. force_reverse_video_cursor = true does not solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants