From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd23039a1d740a56 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-01 05:37:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.voicenet.com!nntp.upenn.edu!msunews!sens-a.cse.msu.edu!meinersc From: Chad Robert Meiners Newsgroups: comp.lang.ada Subject: Re: Ada binding to redirect standard output in Win32 Date: Mon, 1 Oct 2001 08:35:47 -0400 Organization: Michigan State University Message-ID: References: <3bb82d8e$1@pull.gecm.com> NNTP-Posting-Host: sens-a.cse.msu.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <3bb82d8e$1@pull.gecm.com> Xref: archiver1.google.com comp.lang.ada:13571 Date: 2001-10-01T08:35:47-04:00 List-Id: 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... > > > >