Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!ames!dftsrv!nssdca.gsfc.nasa.gov!lanmaint From: lanmaint@nssdca.gsfc.nasa.gov (Dave Yoest) Newsgroups: comp.lang.pascal Subject: Re: Reading invisible integers Message-ID: <5590@dftsrv.gsfc.nasa.gov> Date: 7 Jun 91 10:18:00 GMT References: <27124@adm.brl.mil> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: lanmaint@nssdca.gsfc.nasa.gov Organization: NASA - Goddard Space Flight Center Lines: 44 News-Software: VAX/VMS VNEWS 1.3-4 In article <27124@adm.brl.mil>, 209507097@ucis.vill.edu (MCREE, JAMES F) writes... >"N.O. Monaghan" writes... > >> I wonder if anybody can help me. Is it possible to input an integer >> in Turbo Pascal while having the echoing of the digits suppressed >> as they are being typed in. I know that it is possible to read each >> digit in individually and suppress the echoing while this is being >> done, and then convert the data into an integer - but is >> there anyway in which an integer can be directly read in without >> using any conversions or similar tricks? >> >> Nils. > >Nils, > > Try setting the color of the characters to be the same as the >background color of the screen. If you do that they will be printed, but not >visible. This method will work for reading any type of input. But if you do a printscreen, the "invisible" characters will be printed out just as if the text was visible on the screen. Other than this little problem, this is a great idea! I spent some time writing a routine using the method Nils described, when the idea of setting textcolor := backgroundcolor never occured to me and would have worked just fine in my application. Dave Yoest LAN M&O Section Supervisor NASA/Goddard Space Flight Center Greenbelt, Md. USA 20646 DYOEST@128.183.43.16 DYOEST@zaphod.gsfc.nasa.gov