ghostty icon indicating copy to clipboard operation
ghostty copied to clipboard

`adjust-cursor-thickness` should apply to `cursor-style = underline`

Open qwerasd205 opened this issue 6 months ago • 1 comments

Discussed in https://github.com/ghostty-org/ghostty/discussions/3194

Originally posted by zx8 December 26, 2024 Coming from this answer, it appears this option already applies to the thickness of the cursor when the style is set to bar, but it does not apply when the cursor style is set to underline.

Here's how it looks between iTerm (left) and Ghostty (right) at the moment:

image

Would it be possible to extend this setting to work with underline mode too?


Maintainer note

This is a limitation of the fact that we currently use the underline sprite drawing function to draw the underline cursor, which uses the underline thickness. This can be remedied by separating out the underline cursor drawing to live in the same place as the other cursor drawing functions, and use the cursor thickness for it.

qwerasd205 avatar Jun 22 '25 20:06 qwerasd205

Just ran into this today. Would be a great addition when you want an underline cursor but also have underline text so you can see it better. Here is an example from iTerm in Neovim where the cursor and the underlined text can be easily distinguished.

Image

wavded avatar Jun 24 '25 00:06 wavded