Cursor changes from blinking to steady after some ncurses programs terminate #5609
-
Certain ncurses programs cause the cursor to stop blinking after they terminate. I noticed this with programs like The problem is related to the use of
Compile with Before the program is run, the cursor is blinking. After, it is not. As a control, I tested the same program in iTerm2. The cursor remains blinking after the program terminates. We can isolate the problem to the Ghostty version: 1.1.0 Config file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
By the way, what's your ncurses version? It's possible that this is an ncurses bug that was already fixed (I can't reproduce this on ncurses 6.5, as I had mentioned in the Discord server). |
Beta Was this translation helpful? Give feedback.
-
I haven't fully looked at the CSI sequences being set but I suspect When shell integration is enabled, the cursor style does revert to blinking because the prompt line forces a specific cursor style. But without shell integration enabled, we only have blink on startup due to the Still looking though. |
Beta Was this translation helpful? Give feedback.
Found a detailed comment in our source explaining what is happening: