From: Peter.Weiss@Germany.Sun.com (Peter Weiss, Sun Microsystems, Germany)
Subject: Re: password shows on emacs as a shell
Date: Tue, 05 Nov 2002 17:46:50 +0100 [thread overview]
Message-ID: <xpxysmygdkw5.fsf@Germany.Sun.com> (raw)
In-Reply-To: be47c593.0211050833.20ae67cf@posting.google.com
>>>>> On 5 Nov 2002 08:33:56 -0800, kirpi@tiscali.it (Luigi) said:
Luigi> I run Linux SuSE 8.0 and try Emacs as a unix shell.
Luigi> The bad thing is that as "su -", emacs shows the password while I type it.
Luigi> Not so nice.
Luigi> What do you think, please?
Put the following in your .emacs:
(add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)
From the documentation:
comint-watch-for-password-prompt is a compiled Lisp function in `comint'.
(comint-watch-for-password-prompt STRING)
Prompt in the minibuffer for password and send without echoing.
This function uses `send-invisible' to read and send a password to the buffer's
process if STRING contains a password prompt defined by
`comint-password-prompt-regexp'.
Hth -- Peter
--
Consultant der CLASS AG http://www.class.de
Professional Services
mobil +49 (0) 172/837 91 25
mailto:Peter.Weiss@class.de
next prev parent reply other threads:[~2002-11-05 16:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 16:33 password shows on emacs as a shell Luigi
2002-11-05 16:46 ` Peter Weiss, Sun Microsystems, Germany [this message]
2002-11-07 22:09 ` Luigi
2002-11-07 23:24 ` those who know me have no need of my name
2002-11-08 19:29 ` Luigi
2002-11-08 17:23 ` Kai Großjohann
2002-11-11 11:55 ` Luigi
2002-11-11 20:01 ` Karl Eichwalder
2002-11-11 20:38 ` Jesper Harder
2002-11-12 8:15 ` Eric Marsden
2002-11-12 18:31 ` Karl Eichwalder
2002-11-05 17:14 ` Kai Großjohann
2002-11-11 21:06 ` Luigi
2002-11-11 21:15 ` Luigi
2002-11-05 17:20 ` Joachim Pense
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xpxysmygdkw5.fsf@Germany.Sun.com \
--to=peter.weiss@germany.sun.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).