Open waldnercharles opened 8 years ago
I don't know how to detect cursor type when Emacs running on terminal. Especially iTerm, Konsole.
Is there a way to revert it manually upon leaving? For example, I'd just want to return it to a box on leaving. I tried delete-frame-hook but that didn't work.
For now I added a cursor reset to my prompt. Something like this:
if [ -n "$TMUX" ]; then
local _reset_cursor=$'\e[0 q'
else
local _reset_cursor=$'\e[2 q'
fi
PROMPT='%{${_reset_cursor}%}...'
After leaving emacs via Evil's
:q
, the cursor does not revert either its color or shape. This can be reproduced via:q
orpkill emacs
from another terminal.I'm using xterm as my terminal.