From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: print password on the screen Date: Thu, 20 Jun 2002 19:28:24 +0100 Organization: None Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <200206201743.g5KHh6M06401@myh7.csit.fsu.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024597889 21741 127.0.0.1 (20 Jun 2002 18:31:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Jun 2002 18:31:29 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17L6iP-0005eR-00 for ; Thu, 20 Jun 2002 20:31:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17L6iW-0005ir-00; Thu, 20 Jun 2002 14:31:36 -0400 Original-Received: from chi6-1.relay.mail.uu.net ([199.171.54.98]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17L6fS-0005LO-00 for ; Thu, 20 Jun 2002 14:28:26 -0400 Original-Received: from pegasus.csx.cam.ac.uk by chi6sosrv13.alter.net with ESMTP (peer crosschecked as: pegasus.csx.cam.ac.uk [131.111.8.69]) id QQmucf19510 for ; Thu, 20 Jun 2002 18:28:27 GMT Original-Received: from news by pegasus.csx.cam.ac.uk with local (Exim 3.34 #1) id 17L6fQ-0007E1-00 for gnu-emacs-bug@moderators.isc.org; Thu, 20 Jun 2002 19:28:24 +0100 Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 17 Original-NNTP-Posting-Host: xpc21.ast.cam.ac.uk X-Attribution: GM User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.90 (i686-pc-linux-gnu) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2168 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2168 Jinquan Xu wrote: > under shell mode, if I access my romote machine and input the password, > the password is printed out on the screen. Have you tried (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt) This is documented in the info node for shell mode, as is the command send-invisible. Note that even if you use this to stop Emacs echoing your password as you type, the last 100 keys you pressed will still be visible with M-x view-lossage, C-h l. If you want to be paranoid (and of course you do, right?) get in the habit of pressing 100 keys (eg arrow keys) after entering a password.