# HG changeset patch # User Richard M. Stallman # Date 719133491 0 # Node ID 2ba9b06d4247895113727d41bfce32624969ed98 # Parent 527af9fa86761ac9116fb7571c62cfd13610999c (telnet): Wait for telnet output before sending `open'. diff -r 527af9fa8676 -r 2ba9b06d4247 lisp/telnet.el --- a/lisp/telnet.el Thu Oct 15 05:07:42 1992 +0000 +++ b/lisp/telnet.el Thu Oct 15 07:18:11 1992 +0000 @@ -158,6 +158,8 @@ (switch-to-buffer (make-comint name "telnet")) (set-process-filter (get-process name) 'telnet-initial-filter) (erase-buffer) + ;; Don't send the `open' cmd till telnet is ready for it. + (accept-process-output (get-process name)) (send-string name (concat "open " arg "\n")) (telnet-mode) (setq telnet-count telnet-initial-count)))