Function: claude-code-ide--terminal-resize-handler
claude-code-ide--terminal-resize-handler is a natively compiled
function defined in claude-code-ide.el.
Signature
(claude-code-ide--terminal-resize-handler)
Documentation
Retrieve the terminal's resize handling function based on backend.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
;;; Terminal Reflow Glitch Prevention
;;
;; This section implements a workaround for Claude Code bug #1422
;; where terminal reflows during height-only changes can cause
;; uncontrollable scrolling. This code should be removed once
;; the upstream bug is fixed.
;; See: https://github.com/anthropics/claude-code/issues/1422
(defun claude-code-ide--terminal-resize-handler ()
"Retrieve the terminal's resize handling function based on backend."
(pcase claude-code-ide-terminal-backend
('vterm #'vterm--window-adjust-process-window-size)
('eat #'eat--adjust-process-window-size)
;; Ghostel manages resizing differently enough that the vterm/eat
;; reflow workaround should stay disabled for it.
('ghostel nil)
(_ (error "Unsupported terminal backend: %s" claude-code-ide-terminal-backend))))