Function: kkp--ensure-state

kkp--ensure-state is a natively compiled function defined in kkp.el.

Signature

(kkp--ensure-state TERMINAL)

Documentation

Return the kkp--state for TERMINAL, creating and storing one if absent.

Source Code

;; Defined in /nix/store/0igl9q4k4n87vg4h2gnnrlha21kx9biv-emacs-packages-deps/share/emacs/site-lisp/elpa/kkp-20260706.858/kkp.el
(defun kkp--ensure-state (terminal)
  "Return the `kkp--state' for TERMINAL, creating and storing one if absent."
  (or (kkp--terminal-state terminal)
      (let ((state (kkp--make-state)))
        (set-terminal-parameter terminal 'kkp--state state)
        state)))