* pass help
@ 2003-03-15 2:05 David
2003-03-16 19:16 ` David
2003-03-17 14:13 ` Rodrigo García
0 siblings, 2 replies; 3+ messages in thread
From: David @ 2003-03-15 2:05 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pass help
2003-03-15 2:05 pass help David
@ 2003-03-16 19:16 ` David
2003-03-17 14:13 ` Rodrigo García
1 sibling, 0 replies; 3+ messages in thread
From: David @ 2003-03-16 19:16 UTC (permalink / raw)
Doing this under DOS/console by the way?
davidp@retype.net (David) wrote in message news:<eb212a60.0303141805.395ab72e@posting.google.com>...
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pass help
2003-03-15 2:05 pass help David
2003-03-16 19:16 ` David
@ 2003-03-17 14:13 ` Rodrigo García
1 sibling, 0 replies; 3+ messages in thread
From: Rodrigo García @ 2003-03-17 14:13 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-17 14:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-15 2:05 pass help David
2003-03-16 19:16 ` David
2003-03-17 14:13 ` Rodrigo García
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox