Commit 2a015363 authored by Richard M. Stallman's avatar Richard M. Stallman

(telnet): Wait for telnet output before sending `open'.

parent 5bfe95c9
......@@ -158,6 +158,8 @@ Normally input is edited in Emacs and sent a line at a time."
(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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment