Files
Sönke Holz 242fdddd1e LibVT+Userland+Kernel: Make DECTCEM not reset the cursor shape
Previously, making the cursor visible with DECTCEM caused the cursor
to reset its appearance to the shape that was set before the last
DECTCEM command making it invisible.
However, the cursor shape could have been changed between those two
commands (or the cursor could have never been made invisible before),
causing us to display an incorrect cursor shape.

Instead of (incorrectly) keeping track of the old cursor shape in
`m_saved_cursor_shape`, let's simplify this code by introducing a
`set_cursor_hidden` function, which is used by `TerminalWidget` to
set its `m_cursor_is_hidden` variable to enable/disable drawing of
the cursor.

This causes neovim to display the bar cursor shape in insert mode.
Previously, it displayed the block shape since it always issues a
"set cursor visible" command after setting the cursor shape,
therefore we incorrectly reset the shape to a block cursor.
2026-04-13 16:13:29 +02:00
..
2026-02-04 16:06:04 +01:00
2023-11-08 09:31:54 +01:00