helix
helix copied to clipboard
Add solid/blink cursor toggle
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
.
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?
"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.
I think this is a terminal option. For example, kitty has a
cursor_blink_interval
option that, when set to0
, 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
I use Kitty(Mac OS) and my caret blinking is on, but when I open helix my caret blinking is off )).
Helix draws its own cursors since we need multiple cursors, hiding the terminal cursor.
Same issue I have faced is there a way to disable the animation ?
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.
(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
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).
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).
Just trying out Kitty and I came to say that the cursor is not blinking in Helix but blinking just fine in Vim. :)
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.