1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-19 18:13:55 +00:00

(telnet-simple-send): New function.

(telnet): Arrange to use that.
This commit is contained in:
Richard M. Stallman 1993-06-08 01:29:05 +00:00
parent d177495be7
commit 3ed5409efa

View File

@ -132,6 +132,12 @@ rejecting one login and prompting for the again for a username and password.")
(set-process-filter proc 'telnet-filter))
(t (setq telnet-count (1+ telnet-count)))))))
;; Identical to comint-simple-send, except that it sends telnet-new-line
;; instead of "\n".
(defun telnet-simple-send (proc string)
(comint-send-string proc string)
(comint-send-string proc telnet-new-line))
(defun telnet-filter (proc string)
(let ((at-end
(and (eq (process-buffer proc) (current-buffer))
@ -178,6 +184,7 @@ Normally input is edited in Emacs and sent a line at a time."
(erase-buffer)
(send-string name (concat "open " arg "\n"))
(telnet-mode)
(setq comint-input-sender 'telnet-simple-send)
(setq telnet-count telnet-initial-count)))
(defun telnet-mode ()