🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #626

Re: read with noecho

#626
From: Aaron Auseth
Date: Thu, 09 Apr 1992 00:46
29 lines
1487 bytes
In article <73164@netnews.upenn.edu> yates@a.chem.upenn.edu (John H. Yates) writes:
>I need to call a function or routine from Fortran
>that will prompt the user for a password, not
>echo it as it is typed, and return that password
>to the calling program for checking.
>
>Can anyone supply, or point me to such an example for
>SGI IRIX for 4D hardware, or on a MS DOS 5.0 platform?
>(I need to get this working on both).
>
>I had this working on VAX/VMS with system sys$qio
>calls coded in Fortran. I now need to port the code
>to DOS and IRIX now, and just be done with it.
>
>The called routine can be in Assembler, Fortran, or
>C, it only needs to be called from my Fortran.

It's easy to do in C, in TURBO C there is a getch() function, you could make
a simple function in C:

		char anyoldfunction()
		{
			return getch();
		}

This will wait for a key to be pressed then return the ASCII value.  This
routine uses the BIOS keyboard buffer, I assume fortran keeps this intact.
If you are using a PC based fortran compiler, there should be something
similar in the PC fortran language!
Technical Details
Message-ID: <1992Apr9.004620.13732@clark.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!clark!aaron
References: <73164@netnews.upenn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!clark!aaron
From: aaron@clark.edu (Aaron Auseth)
Newsgroups: comp.os.msdos.programmer
Subject: Re: read with noecho
Message-ID: <1992Apr9.004620.13732@clark.edu>
Date: 9 Apr 92 00:46:20 GMT
Article-I.D.: clark.1992Apr9.004620.13732
References: <73164@netnews.upenn.edu>
Organization: Clark College, Vancouver, Wa.  USA
Lines: 29