Function: comint-simple-send

comint-simple-send is a byte-compiled function defined in comint.el.gz.

Signature

(comint-simple-send PROC STRING)

Documentation

Default function for sending to PROC input STRING.

This just sends STRING plus a newline. To override this, set the hook comint-input-sender.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-simple-send (proc string)
  "Default function for sending to PROC input STRING.
This just sends STRING plus a newline.  To override this,
set the hook `comint-input-sender'."
  (let ((send-string
         (if comint-input-sender-no-newline
             string
           ;; Sending as two separate strings does not work
           ;; on Windows, so concat the \n before sending.
           (concat string "\n"))))
    (comint-send-string proc send-string))
  (if (and comint-input-sender-no-newline
	   (not (string-equal string "")))
      (process-send-eof)))