Closed RahjIII closed 6 months ago
DomRenderer
bar style cursor not blinking 👻 ...
bar style cursor not blinking 👻 ...
Confirmed, bar style | also not blinking in 5.4.0. (Sorry 'bout that, I should have tried it too for completeness.)
@RahjIII If possible, using webgl addon is a good option
Enabled webgl addon, cursors work fine.
Hi, I'm facing the same issue and can confirm that webgl addon does fix this, but if enabled, how can we test the inner contents?
@devjiwonchoi you can't really if you want to query the actual dom. You could try enabling screenReaderMode
which adds info for screen readers (though maybe not in the exact format you expect) or using the buffer
API. I'm guessing you want the DOM renderer though
Sounds great. Thank you for replying!
Probably caused by https://github.com/xtermjs/xterm.js/issues/4773
I've updated from xterm.js 5.3.0 to 5.4.0 and noticed that the cursor is no longer blinking when it is focused and in block mode.
With these options set: "cursorBlink": true, "cursorStyle": "block", "cursorInactiveStyle": "outline"
The cursor goes from outline to block style when the terminal is focused, but the block cursor does not blink as expected. It is supposed to blink, and does blink under xterm.js 5.3.0.
With cursorStyle set to "underline" and cursorBlink to true, the cursor does blink as expected. If I change cursorBlink to false, then the underline cursor does not blink as expected. (showing that the cursorBlink attribute is being honored for the underline cursor)
It only appears that the cursor is fails to blink when cursorBlink is true and cursorStyle is block.
Details
Steps to reproduce