helix icon indicating copy to clipboard operation
helix copied to clipboard

Add solid/blink cursor toggle

Open peterkos opened this issue 2 years ago • 12 comments

It'd be great if the cursor could have a solid mode that does not blink.

Sublime Text has a few options("smooth", "phase", "blink", "solid"), but it seems easiest just to do blink and solid.

peterkos avatar Apr 02 '22 22:04 peterkos

I think this is a terminal option. For example, kitty has a cursor_blink_interval option that, when set to 0, disables blinking. Which terminal emulator are you using?

the-mikedavis avatar Apr 03 '22 01:04 the-mikedavis

"blink" and "solid" cursor can be set by using ANSI escape code lkie:

echo -e -n "\x1b[\x30 q" # Blinking block
echo -e -n "\x1b[\x31 q" # Blinking block
echo -e -n "\x1b[\x32 q" # Steady block
echo -e -n "\x1b[\x33 q" # Blinking underline
echo -e -n "\x1b[\x34 q" # Steady underline
echo -e -n "\x1b[\x35 q" # Blinking bar
echo -e -n "\x1b[\x36 q" # Steady bar

But "smooth" and "phase" is impossible due to limitation of the terminal.

Maybe this will be imperment to the GUI forntend.

NNBnh avatar Apr 03 '22 01:04 NNBnh

I think this is a terminal option. For example, kitty has a cursor_blink_interval option that, when set to 0, disables blinking. Which terminal emulator are you using?

I use iTerm2 (3.4.15). Even with Blinking Cursor disabled it still blinks when resting. (Also, curiously, the cursor shape of my iTerm setting gets overridden with the block cursor after quitting helix. Might be worth a separate bug report)

https://user-images.githubusercontent.com/2782749/162591738-48b02b21-b42d-43bb-aab6-a79a8326bfac.mp4

peterkos avatar Apr 09 '22 21:04 peterkos

I use Kitty(Mac OS) and my caret blinking is on, but when I open helix my caret blinking is off )).

ChzenChzen avatar May 04 '22 13:05 ChzenChzen

Helix draws its own cursors since we need multiple cursors, hiding the terminal cursor.

sudormrfbin avatar May 04 '22 14:05 sudormrfbin

Same issue I have faced is there a way to disable the animation ?

ChinmayMoghe avatar Oct 31 '22 01:10 ChinmayMoghe

I would like this too. The block cursor for me is indeed solid and non-flashing, but the bar cursor flashes (even when moving the cursor), making it hard to see its position sometimes when moving the cursor around.

eliasboegel avatar Dec 21 '22 10:12 eliasboegel

(Also, curiously, the cursor shape of my iTerm setting gets overridden with the block cursor after quitting helix. Might be worth a separate bug report)

Noticed this as well so created a ticket #5364

Tubbles avatar Jan 02 '23 09:01 Tubbles

My Helix cursor never blinks (including at the command line, in the file picker etc - where the terminal cursor's color is reused by Helix). The cursor blinks correctly in zsh, outside of Helix. I'm using iTerm on macOS.

A couple of other people have reported the same issue (@ChzenChzen and @eliasboegel, also on macOS).

7ombie avatar Jun 14 '23 03:06 7ombie

There are now two bugs and a feature request in this issue.

There is a bug with cursors not blinking, another bug where the cursor is not properly reset when Helix exits, as well as a feature request for new cursor configuration options (re. blinking).

7ombie avatar Jun 14 '23 03:06 7ombie

Just trying out Kitty and I came to say that the cursor is not blinking in Helix but blinking just fine in Vim. :)

Alacho2 avatar Apr 22 '24 18:04 Alacho2

Also seeing a non-blinking cursor on ubuntu 24.04 using the builtin terminal. The cursor blinks correctly outside of helix, in the shell and in vim for example.

JonnieCache avatar Jun 11 '24 14:06 JonnieCache