SUMMARY The Cursor shape setting is lost STEPS TO REPRODUCE 1. Appearance -> Cursor -> Set Shape to `I-Beam` (I suppose it happens with Underline too) 2. Open a program that changes the cursor to a block (e.g. neovim) 3. Close the program OBSERVED RESULT The cursor for that tab no longer uses the selected shape. EXPECTED RESULT It should go back to the selected shape. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 5.21.90 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Created attachment 139091 [details] Step 1 (change cursor shape)
Created attachment 139092 [details] Step 2 (open neovim)
Created attachment 139093 [details] Step 3 (exit neovim) https://phoenixnap.com/kb/how-to-exit-vim
The same behavior can be observed under xterm ("xterm -uc" to start an xterm with an underline cursor) vte ("vte-2.91 --cursor-shape ibeam") and others. To restore the cursor to the selected shape, run "reset".
Why does that mean it's not a bug? Even if you wouldn't explicitly call this a bug, this can be treated as a feature request instead, since I think that's how it should be.
IIUC, the app running in the terminal (neovim) is supposed to reset the cursor shape when it's closed (by sending an escape sequence).
@Ahmad If that's the case, I can understand it. I would like another confirmation then I will create an issue for neovim.
I would try with another app, e.g. vim.
It's the same problem with vim. Neovim was just an example. I can't think of another terminal program that changes the cursor shape right now.
Neovim issue: https://github.com/neovim/neovim/issues/4396 The most portable way to restore the cursor shape is to run "reset". The NeoVim issue also has a link to a VimLeave handler to set the cursor to a specific shape, e.g. for a block: :au VimLeave * set guicursor=a:block-blinkon0 Egmont is wrong on a detail: there _is_ a way to query the cursor shape, but it seems to be only supported by xterm: DECRQSS.