Function: claude-code-ide--vterm-copy-mode-hook
claude-code-ide--vterm-copy-mode-hook is a natively compiled function
defined in claude-code-ide.el.
Signature
(claude-code-ide--vterm-copy-mode-hook)
Documentation
Make sure cursor is visible in vterm-copy-mode.
Saves the current cursor-type when entering copy mode and restores it when exiting, ensuring compatibility with evil-mode and other packages that manage cursor appearance.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
(defun claude-code-ide--vterm-copy-mode-hook ()
"Make sure cursor is visible in `vterm-copy-mode'.
Saves the current cursor-type when entering copy mode and restores it
when exiting, ensuring compatibility with evil-mode and other packages
that manage cursor appearance."
(if vterm-copy-mode
;; Entering copy mode: save current cursor-type and make cursor visible
(progn
(setq claude-code-ide--saved-cursor-type cursor-type)
(when (null cursor-type)
(setq cursor-type t)))
;; Exiting copy mode: restore previous cursor-type
(setq cursor-type claude-code-ide--saved-cursor-type)))