comp.lang.ada
 help / color / mirror / Atom feed
From: Chad Robert Meiners <meinersc@cse.msu.edu>
Subject: Re: Ada binding to redirect standard output in Win32
Date: Mon, 1 Oct 2001 08:35:47 -0400
Date: 2001-10-01T08:35:47-04:00	[thread overview]
Message-ID: <Pine.GSO.4.31.0110010830050.21460-100000@sens-a.cse.msu.edu> (raw)
In-Reply-To: <3bb82d8e$1@pull.gecm.com>

I take it that you don't want to write your own Get_Line routine.  If that
is acceptable though, try using Get_Immediate I believe that it doesn't
echo the keystroke.  Otherwise use the NT_Console package to set the
foreground color equal to the background color.  The only problem with
that is it would still be possible to cut and paste the password off of
the screen, but if you are using NT_Console you can easy write blanks over
the password.

-Chad R. Meiners

On Mon, 1 Oct 2001, Martin Dowie wrote:

> I have a Win32 (non-GUI) program which requires the user
> to type in their password but, for obvious reasons, I
> don't want it to appear on the screen/DOS window as
> they type.
>
> Does anyone have an Ada binding to a routine similar in
> effect to 'ECHO OFF' that I could call before the
> 'Get_Line'? or, something similar to redirecting the
> standard output to a UNIX null device.
>
> I've exhausted my search engine enough on this! :-)
>
> Thanks in advance...
>
>
>
>




  reply	other threads:[~2001-10-01 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-01  8:59 Ada binding to redirect standard output in Win32 Martin Dowie
2001-10-01 12:35 ` Chad Robert Meiners [this message]
2001-10-01 13:44   ` Martin Dowie
2001-10-01 13:25 ` Marin David Condic
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox