Terminal cursor blinks in opencode even though it shouldn't
Thanks a lot for Opencode, it's awesome! :-)
I have my terminal (Gnome Terminal 3.54.4) set to a non-blinking cursor because I find a blinking cursor quite distracting.
Since the release of Opencode 0.4.27 the non-blinking is no longer respected; the cursor blinks. In version 0.4.26 the cursor didn't blink, as configured in the terminal.
The cursor can be made non-blinking temporarily by resetting the terminal from its menu, but the blinking returns shortly after.
Maybe this was due to the change fix: use real cursor instead of virtual cursor?
also have this issue
same issue and when I /exit the blinking persist on the current terminal tab/window
I have the same behavior as @AlexSlayerLoop where the blinking persists after closing opencode
We will look into this
Had the same experience with ghostty
facing this problem using wezterm as well, on windows 11 24H2 build 26120.1843
I imagine this will be fixed post opentui migration that should wrap up this week
Still happening with opentui.
I have not been able to figure out why it's happening. I wonder if there is a random escape sequence hard-coded somewhere.
Hmm .. I can't find a download for bun that has debug symbols enabled. Anybody know how to get symbols for bun in gdb?
Ok. After a bit of reading and testing and looking at strace outputs, I think that the reason is because opentui doesn't support configurable cursor shapes for its edit/input buffers:
ug -r setCursorStyle packages/core/src/renderables
packages/core/src/renderables/EditBufferRenderable.ts
420: this._ctx.setCursorStyle("block", true)
425: this._ctx.setCursorStyle("block", true)
packages/core/src/renderables/Input.ts
101: this._ctx.setCursorStyle("block", true)
Hi,
Ever since https://github.com/anomalyco/opentui/pull/267
OpenTui has a cursorStyle configuration, is all that is left to do is to expose this configuration to opencode ?
I'll love to disable cursor blinking!