From xemacs-m  Tue Feb 25 17:07:12 1997
Received: from crystal.WonderWorks.COM (crystal.WonderWorks.com [192.203.206.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA08890
	for <xemacs-beta@xemacs.org>; Tue, 25 Feb 1997 17:07:07 -0600 (CST)
Received: by crystal.WonderWorks.COM 
	id QQceme11583; Tue, 25 Feb 1997 18:06:43 -0500 (EST)
Date: Tue, 25 Feb 1997 18:06:43 -0500 (EST)
Message-Id: <QQceme11583.199702252306@crystal.WonderWorks.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Kyle Jones <kyle_jones@wonderworks.com>
To: xemacs-beta@xemacs.org
Subject: Re: Can't determine how to read passwords, winging it. 
In-Reply-To: <199702252246.QAA08717@xemacs.org>
References: <QQcelt09147.199702252018@crystal.WonderWorks.COM>
	<199702252246.QAA08717@xemacs.org>
X-Face: /cA45WHG7jWq>(O3&Z57Y<"WsX5ddc,4c#w0F*zrV#=M
        0@~@,s;b,aMtR5Sqs"+nU.z^CSFQ9t`z2>W,S,]:[+2^
        Nbf6v4g>!&,7R4Ot4Wg{&tm=WX7P["9%a)_da48-^tGy
        ,qz]Z,Zz\{E.,]'EO+F)@$KtF&V

Chuck Thompson writes:
 > Actually, I like the behavior.  The problem is that there is no proper
 > way to do it currently.  I had on my mythical (and lengthy) list of
 > things to do adding the proper way to do this, which is to add a flag
 > which causes redisplay itself to invert the foreground and background
 > properties.  One nice and simple flag that works without actually
 > altering the face in any way.  It would only take a couple hours to
 > do.

Heyyyy, now that would be reasonable.  Clearly redisplay already
knows how to invert the display, given the tremendous flash that
C-g gives if you use a visible bell.  Try this code, gang:

(let ((visible-bell t)
      (passwd-invert-frame-when-keyboard-grabbed nil)
      (id nil))
  (unwind-protect
      (progn
	(setq id (add-timeout 0.3 'ding nil 0.3))
	(read-passwd "Password: "))
    (and id (disable-timeout id))))

Annoying as hell, and it works on ttys, too.

