Underline cursor blends with text underline #415

Closed
opened 7 months ago by yaroslav · 1 comments

I have zsh and neovim set so that in normal mode the cursor shape is underline, while in insert mode it is beam. zsh underlines correct paths, and when I position the cursor in underlined text, it blends with the text's underline making it impossible to see where the cursor is actually located at the moment and very frustrating to keep track of its location in these situations.

I guess this problem could be solved by drawing the underline cursor a little lower than it is currently being drawn. That's basically what Alacritty does, draw the cursor a little bit lower than the text underline. I don't know if that will clip the cursor with the next line of text, though.

In the screenshot you can see what I am talking about. The cursor is actually under the c of etc, but there's no way to tell just by looking at it.

I have zsh and neovim set so that in normal mode the cursor shape is underline, while in insert mode it is beam. zsh underlines correct paths, and when I position the cursor in underlined text, it blends with the text's underline making it impossible to see where the cursor is actually located at the moment and very frustrating to keep track of its location in these situations. I guess this problem could be solved by drawing the underline cursor a little lower than it is currently being drawn. That's basically what Alacritty does, draw the cursor a little bit lower than the text underline. I don't know if that will clip the cursor with the next line of text, though. In the screenshot you can see what I am talking about. The cursor is actually under the c of etc, but there's no way to tell just by looking at it.
dnkl added the
enhancement
label 7 months ago
Owner

That's basically what Alacritty does, draw the cursor a little bit lower than the text underline.

An alternative would be to draw the cursor thicker. It may still clip though.

> That's basically what Alacritty does, draw the cursor a little bit lower than the text underline. An alternative would be to draw the cursor thicker. It may still clip though.
dnkl closed this issue 7 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.