Function: ghostel--self-insert

ghostel--self-insert is an interactive and natively compiled function defined in ghostel.el.

Signature

(ghostel--self-insert)

Documentation

Send the last typed character to the terminal.

Key Bindings

ghostel-char-mode-map SPC..~ ghostel-char-mode-map €..\x3FFFFF ghostel-semi-char-mode-map SPC..~ ghostel-semi-char-mode-map €..\x3FFFFF

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--self-insert ()
  "Send the last typed character to the terminal."
  (interactive)
  (ghostel--on-user-input)
  (let* ((keys (this-command-keys))
         (char (aref keys (1- (length keys))))
         (str (if (and (characterp char) (< char 128))
                  (string char)
                (encode-coding-string (string char) 'utf-8))))
    (ghostel--send-string str)))