Function: ghostel-line-mode-delete-char-or-eof
ghostel-line-mode-delete-char-or-eof is an interactive and natively
compiled function defined in ghostel-line-mode.el.
Signature
(ghostel-line-mode-delete-char-or-eof)
Documentation
Delete the next char, or send EOF at an empty input.
Key Bindings
ghostel-line-mode-map C-d
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel-line-mode-delete-char-or-eof ()
"Delete the next char, or send EOF at an empty input."
(interactive)
(let ((start (and (markerp ghostel--line-input-start)
(marker-position ghostel--line-input-start)))
(end (and (markerp ghostel--line-input-end)
(marker-position ghostel--line-input-end))))
(if (and start end (= start end) (= (point) start))
(ghostel--write-pty ghostel--term "\C-d")
(delete-char 1))))