# HG changeset patch # User Karl Heuer # Date 765764317 0 # Node ID 91a5e1cd14c7cc3c5938e39ae07dec23942028d0 # Parent a3ef1108b7ff82cf531ef2de07249fc40caface9 (telnet-initial-filter, read-password): Don't unnecessarily duplicate comint functionality. diff -r a3ef1108b7ff -r 91a5e1cd14c7 lisp/telnet.el --- a/lisp/telnet.el Thu Apr 07 20:31:17 1994 +0000 +++ b/lisp/telnet.el Fri Apr 08 00:18:37 1994 +0000 @@ -127,10 +127,9 @@ (error "No such host.")) ((string-match "passw" string) (telnet-filter proc string) - (let* ((echo-keystrokes 0) - (password (read-password))) - (setq telnet-count 0) - (send-string proc (concat password telnet-new-line)))) + (setq telnet-count 0) + (send-string proc (concat (comint-read-noecho "Password: " t) + telnet-new-line))) (t (telnet-check-software-type-initialize string) (telnet-filter proc string) (cond ((> telnet-count telnet-maximum-count) @@ -228,14 +227,6 @@ (telnet-mode) (setq telnet-count -16))) -(defun read-password () - (let ((answ "") tem) - (message "Reading password...") - (while (prog1 (not (memq (setq tem (read-char)) '(?\C-m ?\n ?\C-g))) - (setq quit-flag nil)) - (setq answ (concat answ (char-to-string tem)))) - answ)) - (provide 'telnet) ;;; telnet.el ends here