From: "Rodrigo García" <rodrigo.garcia@epfl.ch>
Subject: Re: pass help
Date: Mon, 17 Mar 2003 15:13:32 +0100
Date: 2003-03-17T15:13:32+01:00 [thread overview]
Message-ID: <3E75D80C.7070206@epfl.ch> (raw)
In-Reply-To: eb212a60.0303141805.395ab72e@posting.google.com
David wrote:
> How would I go about changing the text the user enters when being
> prompted for the password (changing text to passchar's like
> asterisks), but still be read what the user is actually typing.. would
> it be working along with buffers or is there an simplier method?
>
> TIA
Try something like this (needs to be modified in order to be a bit more
flexible):
with Ada.Text_IO; use Ada.Text_IO;
procedure Password is
A : Character;
S : String(1..10);
begin
for I in 1 .. 10 loop
Get_Immediate (A);
S(I) := A;
Put ("*");
end loop;
New_Line;
Put_Line (S);
end Password;
Rodrigo
prev parent reply other threads:[~2003-03-17 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-15 2:05 pass help David
2003-03-16 19:16 ` David
2003-03-17 14:13 ` Rodrigo García [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox